• 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: Preferences not being written out/saved?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Preferences not being written out/saved?


  • Subject: Re: Preferences not being written out/saved?
  • From: John Pannell <email@hidden>
  • Date: Mon, 19 Jun 2006 18:57:39 -0600

Hi Mark-

Nothing will be written to disk unless a default value changes from the value that was registered (via registerDefaults:) Values that are unchanged remain in memory, and are not written to disk, as the next time the app is run, the proper default values will be loaded from the registerDefaults: again.

What are you trying to achieve by checking for the values on disk? Just making sure things work?

HTH!

John

John Pannell
Positive Spin Media
http://www.positivespinmedia.com

On Jun 19, 2006, at 6:37 PM, Mark Dawson wrote:

With one program, I see my preferences being written out, with another, they aren't (no file is created in my preferences folder).

I haven't been able to figure out what I've done differently. The "bad" app DOES call [[NSUserDefaults standardUserDefaults] registerDefaults:defaultDict]. I DO have a CFBundlerIdentifier (I assume the pref name is keyed off of that-- <CFBundleIdentifier>.plist?).

I figure I must be missing some basic piece, but all I was able to track down in the documentation was the "registerDefaults" piece. What could I be doing wrong?

Thanks,

mark
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40positivespinmedia.com


This email sent to email@hidden

_______________________________________________ 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: 
 >Preferences not being written out/saved? (From: Mark Dawson <email@hidden>)

  • Prev by Date: Preferences not being written out/saved?
  • Next by Date: Excluding native file type from export sheet.
  • Previous by thread: Preferences not being written out/saved?
  • Next by thread: Noob question with printf error
  • Index(es):
    • Date
    • Thread