Re: Bindings/NSUserDefaultsController issue
Re: Bindings/NSUserDefaultsController issue
- Subject: Re: Bindings/NSUserDefaultsController issue
- From: Loukas Kalenderidis <email@hidden>
- Date: Mon, 5 Mar 2007 08:42:11 +1100
Thanks for your suggestion, Keary. I've been pulled off this project
to work on something else for a little while, but when I get back to
the other project I'll try see what the behaviour is with -synchronize.
Cheers,
Loukas
On 28/02/2007, at 6:39 AM, Keary Suska wrote:
on 2/26/07 7:04 PM, email@hidden purportedly said:
Now, even after calling the NSUserDefaultsController's save: method
(it's set to apply immediately, so this shouldn't matter), the actual
defaults system doesn't reflect the change:
I may be brainfarting here but I believe that the defaults controller
actually never saves to disk. It's -save method only applies
changes to the
NSUserDefaults object, and not necessarily to disk.
IIRC, NSUserDefaults is periodically called with -synchronize,
which is used
to save defaults to disk.
However, no matter what, I believe -synchronize is called on
application
quit (as long as the app quits normally), so they should be changed
then, at
least.
So, you may not see changes immediately unless you call -synchronize.
However, if your previously set values seem to "revert" when you do
this,
there may be an issue with how you are defining the defaults set in
the
first place (e.g. non-persistent).
Best,
Keary Suska
Esoteritech, Inc.
"Demystifying technology for your home or business"
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
40rexbanner.com
This email sent to email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden