Re: Retrieving "default" defaults after registerDefaults?
Re: Retrieving "default" defaults after registerDefaults?
- Subject: Re: Retrieving "default" defaults after registerDefaults?
- From: Matt Gemmell <email@hidden>
- Date: Sun, 07 Apr 2002 21:55:20 +0100
On 7/4/02 9:36 pm, Ondra Cada <email@hidden> 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?
>
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.
Thanks for your reply. I've gone back into the documentation, and from what
I've read (and from your reply), I think that the solution is to do this:
myNSDictionary = [[NSUserDefaults standardUserDefaults]
volatileDomainForName:NSRegistrationDomain];
That should return the "default" defaults in an NSDictionary.
Thanks,
-Matt
--
Matt Gemmell
Scotland Software
<
http://www.scotlandsoftware.com/>
_______________________________________________
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.