• 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: Userdefaults, their initial values, and bindings
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Userdefaults, their initial values, and bindings


  • Subject: Re: Userdefaults, their initial values, and bindings
  • From: mmalc crawford <email@hidden>
  • Date: Mon, 20 Aug 2007 08:09:44 -0700


On Aug 20, 2007, at 7:51 AM, Francis Derive wrote:

What about initial values of these defaults ?

From "User Defaults and Bindings"docs @ ADC Home > Reference Library > Guides > Cocoa > Design Guidelines > Cocoa Bindings Programming Topics >, the code of Listing 2 Changing the initial values of the sharedUserDefaultsController instance shows :
// load the default values for the user defaults
userDefaultsValuesPath=[[NSBundle mainBundle] pathForResource:@"UserDefaults"
ofType:@"plist"];
but this gives null for my app.


The example assumes that you've created a 'UserDefaults.plist' file as a project resource for your app...

mmalc

_______________________________________________

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: Userdefaults, their initial values, and bindings
      • From: Francis Derive <email@hidden>
References: 
 >Userdefaults, their initial values, and bindings (From: Francis Derive <email@hidden>)

  • Prev by Date: Userdefaults, their initial values, and bindings
  • Next by Date: Re: Pros/cons of KVO vs. NSNotification
  • Previous by thread: Userdefaults, their initial values, and bindings
  • Next by thread: Re: Userdefaults, their initial values, and bindings
  • Index(es):
    • Date
    • Thread