• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
[iOS] NSUserDefaults best practices
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[iOS] NSUserDefaults best practices


  • Subject: [iOS] NSUserDefaults best practices
  • From: Philip Vallone <email@hidden>
  • Date: Sat, 05 Feb 2011 07:33:08 -0500

Hi,

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.

What are your thoughts on doing this?

Thanks,

Phil


_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:

This email sent to email@hidden

  • Follow-Ups:
    • Re: [iOS] NSUserDefaults best practices
      • From: Chris Parker <email@hidden>
    • Re: [iOS] NSUserDefaults best practices
      • From: Fritz Anderson <email@hidden>
  • Prev by Date: Re: NSBitmapImageRep with floating point values
  • Next by Date: RE: NSBitmapImageRep with floating point values
  • Previous by thread: IKImageView to NSImage?
  • Next by thread: Re: [iOS] NSUserDefaults best practices
  • Index(es):
    • Date
    • Thread