↧
One assert() You Need?
Accidently disconnected outlets in shipping Cocoa apps are legend. — Jonathan “Wolf” Rentzsch From what I can tell assert() is slowly going the way of the goto in the programming world. Exceptions,...
View ArticleCatching nil Member Variables
When I wrote this method it seemed like it would be helpful, //log a warning for any member variable that nil - (void) warnOfNilIVars; { unsigned int ivarCount = 0; Ivar * ivarList =...
View ArticleResources in Unit Tests and Other Frameworks
To load a resource inside a unit test or other bundle, do: NSBundle *unitTestsBundle = [NSBundle bundleForClass:[self class]]; NSString *pathToResource = [unitTestsBundle pathForResource:name...
View Article