• 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
Re: Retrieving "default" defaults after registerDefaults?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Retrieving "default" defaults after registerDefaults?


  • Subject: Re: Retrieving "default" defaults after registerDefaults?
  • From: Ondra Cada <email@hidden>
  • Date: Sun, 7 Apr 2002 22:36:04 +0200

On Sunday, April 7, 2002, at 10:27 , Matt Gemmell wrote:

My question is, can I programmatically access the original "default" values
I registered, so that I can elegantly implement a "Factory Settings" button
in my preferences window? I want to retrieve the "default" values I
initially registered before reading the actual values the user had saved,
so
that I can reset my app's settings to their factory state. I hope that makes
sense.

You need to set a default object so that in its chain of domains searched there is not the application domain, or perhaps you want just read directly the registration domain contents.

Sorry I don't remember the exact howto (I've never needed that), but you should be able to find it in documentation.
---
Ondra Cada
OCSoftware: email@hidden http://www.ocs.cz
2K Development: email@hidden http://www.2kdevelopment.cz
private email@hidden http://www.ocs.cz/oc
_______________________________________________
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: Retrieving "default" defaults after registerDefaults?
      • From: Matt Gemmell <email@hidden>
References: 
 >Retrieving "default" defaults after registerDefaults? (From: Matt Gemmell <email@hidden>)

  • Prev by Date: Retrieving "default" defaults after registerDefaults?
  • Next by Date: Re: Several questions on Objective C
  • Previous by thread: Retrieving "default" defaults after registerDefaults?
  • Next by thread: Re: Retrieving "default" defaults after registerDefaults?
  • Index(es):
    • Date
    • Thread