Quantcast
Channel: Everyday I'm coding » cocoa
Browsing latest articles
Browse All 10 View Live

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 Article


Why 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 Article

Regular 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 Article

how 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 Article


How 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 Article

Delete/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 Article

NSString 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 Article


Understanding 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 Article


Cocoa 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
Browsing latest articles
Browse All 10 View Live