Resetting "Factory" Prefs
Resetting "Factory" Prefs
- Subject: Resetting "Factory" Prefs
- From: Tony Cate <email@hidden>
- Date: Wed, 06 Feb 2002 15:33:31 -0600
I registered the defaults:
[[NSUserDefaults standardUserDefaults] registerDefaults: defaultValues];
My preference panel changes the defaults. (Very easy to do.)
But when I try to reset the prefs I ended up doing this:
[[NSUserDefaults standardUserDefaults] removeObjectForKey:someKey];
While it works, it strikes me as being incorrect.
I tried to use +resetStandardUserDefaults (Description Forthcoming (DF)):
[[NSUserDefaults standardUserDefaults] resetStandardUserDefaults], but
the compiler tells me NSUserDefaults doesn't respond to it.
Any hints would be appreciated.
_______________________________________________
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.