Re: User Defaults
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