Re: What writes out a pref file?
Re: What writes out a pref file?
- Subject: Re: What writes out a pref file?
- From: Clark Cox <email@hidden>
- Date: Fri, 15 Apr 2005 08:37:27 -0400
On 4/15/05, Mark Dawson <email@hidden> wrote:
> >
> > You don't see the value in your app's preferences file because you
> > haven't changed the value. Registration defaults are the baseline set
> > of values to be used for the defaults. That is, they are the values
> > that the program will use if there wasn't a custom value found in the
> > user defaults.
> >
> Are values erased? If I understand things, If I set my baseline for
> key "X" to be "1", "X" won't be put into the prefs file until some
> later call changes the value (say to "2").
Correct.
> My followup question is: If the prefs are written with "2", then the
> user changes it back to "1", does Cocoa (NSUserDefaults) erase "X"'s
> entry in the pref file, or does it just change the entry to "1"?
It just changes the entry to "1". (i.e. if the user explicitly wants
"1", changing the registered default in a future version of the app
will not change their selection).
--
Clark S. Cox III
email@hidden
http://www.livejournal.com/users/clarkcox3/
http://homepage.mac.com/clarkcox3/
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden