I thought I read some where that I could include a NSUserDefaults file with a cocoa app. I cannot seem to find how to do that.
I know I could just create on first app launch but I dont want to do that just yet...
I thought I read some where that I could include a NSUserDefaults file with a cocoa app. I cannot seem to find how to do that.
I know I could just create on first app launch but I dont want to do that just yet...
The User Defaults Programming Topics doc is your friend. You'll want to -registerDefaults:
, which is going to be an NSDictionary
instance created at runtime or loaded from a plist file in your app's resources folder.
As to not wanting to do it just yet, when did you plan to? If you're going to register your app's defaults at all, it's to be done at every launch.