• 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
Re: NSUserDefaults
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSUserDefaults


  • Subject: Re: NSUserDefaults
  • From: jeremy <email@hidden>
  • Date: Sat, 02 Oct 2010 22:58:13 -0400

On Oct 2, 2010, at 5:35 PM, David Blanton wrote:

> When my app runs for the first time I want default values to use.


So put the initial user defaults (i.e., your factory settings) in the NSRegistrationDomain domain.

See the following:

Registration Domain
http://developer.apple.com/library/ios/documentation/Cocoa/Conceptual/UserDefaults/Concepts/DefaultsDomains.html#//apple_ref/doc/uid/20000718-97046

and

Setting a Default in the NSRegistrationDomain
http://developer.apple.com/library/ios/documentation/Cocoa/Conceptual/UserDefaults/Tasks/UsingDefaults.html#//apple_ref/doc/uid/20000719-97292

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Re: NSUserDefaults (From: Greg Guerin <email@hidden>)
 >Re: NSUserDefaults (From: David Blanton <email@hidden>)

  • Prev by Date: Re: NSUserDefaults
  • Next by Date: Re: Syntax coloring settings per file extension?
  • Previous by thread: Re: NSUserDefaults
  • Next by thread: Re: NSUserDefaults
  • Index(es):
    • Date
    • Thread