On 5 Feb 2011, at 4:33 AM, Philip Vallone wrote: > After some reading I understand that when creating a Settings Bundle for by > iOS app, that I need to explicitly set the defaults. I was wondering if > anyone had a preference for where you are setting the defaults. For example > in the App Delegate. > > I decided to use a singleton to set my defaults settings. When the > application is launched, I initiate the singleton from the > didFinishLaunchingWithOptions in my App Delegate.
Usually, you construct a dictionary plist in your application bundle which contains the key/value pairs you wish to use as your "backstop" defaults. Then, you can read that dictionary from the plist in the bundle on launch and call [[NSUserDefaults standardUserDefaults] registerDefaults:]. This sets up the key/value pairs in the registration domain. .chris _______________________________________________ Cocoa-dev mailing list ([email protected]) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [email protected]
