Notes from Bordertown Labs with posts regarding software development for the iPhone, Ruby on Rails, tips and code.
» Contact with inquiries.
Visualize your geodata in augmented reality with 3DAR by Spot Metrix. |
![]()
Tired of looking up Cocoa errors all the time?
1. Install the Ruby gem named Cheat — http://cheat.errtheblog.com/
2. At a command line, type this:
cheat cocoaerrors
3. Look up your problem and get back to work
[wolfshorty:~] mark% cheat cocoaerrors
cocoaerrors:
Cocoa error codes related to validation.
NSManagedObjectValidationError = 1550,
NSValidationMultipleErrorsError = 1560,
NSValidationMissingMandatoryPropertyError = 1570,
NSValidationRelationshipLacksMinimumCountError = 1580,
NSValidationRelationshipExceedsMaximumCountError = 1590,
NSValidationRelationshipDeniedDeleteError = 1600,
NSValidationNumberTooLargeError = 1610,
NSValidationNumberTooSmallError = 1620,
NSValidationDateTooLateError = 1630,
NSValidationDateTooSoonError = 1640,
NSValidationInvalidDateError = 1650,
NSValidationStringTooLongError = 1660,
NSValidationStringTooShortError = 1670,
NSValidationStringPatternMatchingError = 1680,
Let’s say your UITableViewController implements the NSFetchedResultsControllerDelegate. When you add, remove or change Core Data objects in your context, you’d expect the table view to update, right? Make sure you include the following code in your controller.
- (void)controllerDidChangeContent:(NSFetchedResultsController *)controller {
[self.tableView reloadData];
}