Re: NSUserDefaults causing me fits
Re: NSUserDefaults causing me fits
- Subject: Re: NSUserDefaults causing me fits
- From: Dave Thorup <email@hidden>
- Date: Mon, 08 Sep 2003 18:58:35 -0600
On 9/8/03 5:31 PM, "John Timmer" <email@hidden> wrote:
>
On my app controller's awakeFromNib method, I'm creating a dictionary and
>
initializing the user defaults to that if there's no pre-existing defaults.
>
These values seem to take, though if I quit the app, the file doesn't get
>
written out.
Call the "synchronize" method before you quit, otherwise the defaults won't
get written out.
>
If I then go through and update the defaults through a preferences window,
>
the file gets written out with the "synchronize" method. Unfortunately,
>
when I look over the file's contents, all the values appear to have one of
>
two keys (there are the right number, they're just listed as all being one
>
or the other of these two keys). Not surprisingly, this isn't helping much.
I read over this three times and I'm not sure what you're saying. Could you
try to explain this a little better?
<plug type="shameless">
Defaults Manager is a great tool to use when working out and testing
NSUserDefaults issues. You might want to give it a try. At $13 it's worth
the time that it saves you debugging.
</plug>
____________________________________
Dave Thorup
Software Engineer
email@hidden
www.kuwan.net
Defaults Manager - The premier editor for Mac OS X's User Defaults /
Preferences database.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.