Re: Bindings/NSUserDefaultsController issue
Re: Bindings/NSUserDefaultsController issue
- Subject: Re: Bindings/NSUserDefaultsController issue
- From: Keary Suska <email@hidden>
- Date: Tue, 27 Feb 2007 12:39:01 -0700
- Thread-topic: Bindings/NSUserDefaultsController issue
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:
This email sent to email@hidden