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

Re: User Defaults


  • Subject: Re: User Defaults
  • From: David Dunham <email@hidden>
  • Date: Mon, 30 Apr 2007 18:47:38 -0700


On 30 Apr 2007, at 15:53, Roland Silver wrote:

So, in the former case, I save the file path string in [NSUserDefaults standardUserDefaults], with key @"inFilePath", say.
In the latter case, I retrieve the file path string in [NSUserDefaults standardUserDefaults].


So the set of user defaults must persist between one invocation of the app to another, presumably stored in some file, somewhere. That file doesn't appear to be the project's Info.plist, because there's no occurrence of the string "inFilePath" there.

So where is it stashed? And do I have to do something to stash it (and retrieve it when my app begins execution), or does that happen automatically?

This is probably a Cocoa question, better answered on another list.

But NSUserDefaults/CFPreferences saves in the user's Preferences folder. Which is an implementation detail that your application should ignore. (The current implementation uses CFBundleIdentifier and a .plist extension, but the Mac OS 9 implementation was different IIRC.)

David Dunham       Development Manager
+1 206 926 5722      GameHouse Studios


_______________________________________________ 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: 
 >project's plist (From: Roland Silver <email@hidden>)
 >Re: project's plist (From: Chris Hanson <email@hidden>)
 >User Defaults (From: Roland Silver <email@hidden>)

  • Prev by Date: Re: Making .dSYM fails
  • Next by Date: Re: Making .dSYM fails
  • Previous by thread: Re: User Defaults
  • Next by thread: Re: project's plist
  • Index(es):
    • Date
    • Thread