Bordertown Labs Blog

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.


Posts tagged "cocoa"

May 26th, 2010 @ 1:59 pm

Making an eyedropper




Comments (View)

 


 

Dec 7th, 2009 @ 5:47 pm

CocoaDev: Debugging Techniques




Comments (View)

 


 

Aug 18th, 2009 @ 4:11 pm

cheat cocoaerrors

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,




Comments (View)

 


 

Jul 22nd, 2009 @ 4:50 pm

How to reload a tableView after changing

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];
}




Comments (View)

 


 

Archive · RSS · Theme by Autumn