What does the NS prefix mean?
Many classes in Cocoa/Cocoa Touch have the NS prefix. What does it mean? Thanks Solution: It’s the NextStep heritage
View ArticleWhy are Objective-C delegates usually given the property assign instead of...
I’m surfing through the wonderful blog maintained by Scott Stevenson, and I’m trying to understand a fundamental Objective-C concept of assigning delegates the ‘assign’ property vs ‘retain’. Note, the...
View Article“Collection was mutated while being enumerated” on executeFetchRequest
I’m stuck on a problem for hours now and having read everything about this on stackoverflow (and apply every advices found), I’m now officially in need for help. ;o) Here is the context : In my iPhone...
View ArticleRegular expressions in an Objective-C Cocoa application
Initial Googling indicates that there’s no built-in way to do regular expressions in an Objective-C Cocoa application. So four questions: Is that really true? Are you kidding me? Ok, then is there a...
View Articlehow can I selectively update some SQLite table to preserve user data for an...
can you selectively update certain sqllite tables when updating an iphone app, in order to preserve user stored data? how? appreciate the help! Solution: At the simplest level, you’ll need to: Store...
View ArticleHow do I convert NSMutableArray to NSArray?
Objective-C: how do I convert NSMutableArray to NSArray? Solution: An NSMutableArray is a subclass of NSArray so you won’t always need to convert but if you want to make sure that the array can’t be...
View ArticleDelete/Reset all entries in Core Data?
Do you know of any way to delete all of the entries stored in Core Data? My schema should stay the same; I just want to reset it to blank. Edit I’m looking to do this programmatically so that a user...
View ArticleNSString tokenize in Objective-C
What is the best way to tokenize/split a NSString in Objective-C? Solution: Found this at http://borkware.com/quickies/one?topic=NSString (useful link): NSString *string =...
View ArticleUnderstanding reference counting with Cocoa and Objective-C
I’m just beginning to have a look at Objective-C and Cocoa with a view to playing with the iPhone SDK. I’m reasonably comfortable with C’s malloc and free concept, but Cocoa’s references counting...
View ArticleCocoa and Objective-C resources? [closed]
What are the recommended online or offline resources for Objective-C and Cocoa programming? My online resources: O’Reilly. Some useful articles and examples, but has not been updated for quite a while....
View Article