Re: NSUserDefaults stickyness
Re: NSUserDefaults stickyness
- Subject: Re: NSUserDefaults stickyness
- From: Michael Peirce <email@hidden>
- Date: Sat, 16 Feb 2002 15:52:03 -0500
On Saturday, February 16, 2002, at 02:36 PM, Chris Kane
(email@hidden) wrote:
-sychronize is a much more dainty hammer, and is documented.
Thanks Chris for setting me straight.
The docs for -sychronize say:
Saves any modifications to the persistent domains and updates all
persistent domains that were not modified to what is on disk. Returns
NO if it could not save data to disk. Because synchronize is
automatically invoked at periodic intervals, use this method only if
you cannot wait for the automatic synchronization (for example, if your
application is about to exit), or if you want to update user defaults
to what is on disk even though you have not made any changes.
I had overlooked the key last phrase: "or if you want to update user
defaults to what is on disk".
Works fine.
--
Michael Peirce
6497 Spinnaker Drive
Lewis Center OH 43035
740-657-1269
email@hidden
_______________________________________________
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.