• 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: Mark Dawson <email@hidden>
  • Date: Thu, 14 Apr 2005 23:04:58 -0700


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").

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"?

Thanks!

Mark

ps: sorry for the multiple private message; I was replying to cocoa-dev using the wrong account…
_______________________________________________
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
  • Follow-Ups:
    • Re: What writes out a pref file?
      • From: Clark Cox <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>)

  • Prev by Date: Re: NSTableView vs. NSUserDefaults
  • Next by Date: Re: Newbie Question: Building an application for multiple machines
  • Previous by thread: Re: What writes out a pref file?
  • Next by thread: Re: What writes out a pref file?
  • Index(es):
    • Date
    • Thread