• 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: What writes out a pref file?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >What writes out a pref file? (From: Mark Dawson <email@hidden>)
 >Re: What writes out a pref file? (From: Dan Yocom <email@hidden>)
 >Re: What writes out a pref file? (From: Bill Bumgarner <email@hidden>)
 >Re: What writes out a pref file? (From: Mark Dawson <email@hidden>)

  • Prev by Date: Re: dynamically allocating arrays of type double
  • Next by Date: awakeFromNib not called
  • Previous by thread: Re: What writes out a pref file?
  • Next by thread: Newbie Question: Building an application for multiple machines
  • Index(es):
    • Date
    • Thread