• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Resetting "Factory" Prefs
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Resetting "Factory" Prefs
      • From: "Clark S. Cox III" <email@hidden>
  • Prev by Date: Re: Problem of positioning a full screen window
  • Next by Date: Re: NSBrowser and single cell type changes
  • Previous by thread: Re: Problem of positioning a full screen window
  • Next by thread: Re: Resetting "Factory" Prefs
  • Index(es):
    • Date
    • Thread