Re: NSUserDefaults stickyness
Re: NSUserDefaults stickyness
- Subject: Re: NSUserDefaults stickyness
- From: Michael Peirce <email@hidden>
- Date: Thu, 14 Feb 2002 19:16:59 -0500
On Thursday, February 14, 2002, at 05:47 PM, Alex Keresztes wrote:
Have your companion app do a call
[NSUserDefaults resetStandardUserDefaults] (not sure if that is
correct -- look it up in docs)
before every read of the user defaults. The problem is that when the
nsuserdefaults object is created for an
app it is cached, and so any changes to the defaults will not be
noticed until the cache is reread,
which is what reset does.
This does the trick! Much thanks Alex.
Another case of the dreaded "Description forthcoming":
resetStandardUserDefaults
+ (void)resetStandardUserDefaults
Description forthcoming.
--
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.