Top "Cocoa" questions

Cocoa is Apple's application-development framework for macOS, consisting of Foundation, Application Kit, and Core Data.

What's the difference between "bundle display name" and "bundle name" in cocoa application's info plist

Here is a good question: Bundle Name, Executable Name, Product Name...anything else? but I just wonder about the difference …

iphone objective-c cocoa macos
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: …

objective-c regex cocoa
What's the Best Way to Shuffle an NSMutableArray?

If you have an NSMutableArray, how do you shuffle the elements randomly? (I have my own answer for this, which …

objective-c cocoa shuffle
Swift protocols: method does not override any method from its superclass

Since Xcode 6 still has a lots of bugs with Swift, I'm not sure is it one or I'm missing something. …

cocoa swift nslayoutmanager
NSLog/printf specifier for NSInteger?

A NSInteger is 32 bits on 32-bit platforms, and 64 bits on 64-bit platforms. Is there a NSLog specifier that always matches …

objective-c cocoa 32bit-64bit nslog nsinteger
What is the best way to unit test Objective-C code?

What frameworks exist to unit test Objective-C code? I would like a framework that integrates nicely with Apple Xcode.

objective-c cocoa unit-testing xcode
NSDictionary with ordered keys

I have an NSDictionary (stored in a plist) that I'm basically using as an associative array (strings as keys and …

ios objective-c cocoa nsdictionary
How to get Core Data object from specific Object ID?

I can easily get an object's ID in Core Data using the following code: NSManagedObjectID *moID = [managedObject objectID]; However, is …

ios macos cocoa core-data nsfetchrequest
NSString tokenize in Objective-C

What is the best way to tokenize/split a NSString in Objective-C?

objective-c cocoa tokenize
What does the property "Nonatomic" mean?

What does "nonatomic" mean in this code? @property(nonatomic, retain) UITextField *theUsersName; What is the difference between atomic and nonatomic? …

ios objective-c iphone cocoa properties