Re: NSUserDefaults and Application Domain
Re: NSUserDefaults and Application Domain
- Subject: Re: NSUserDefaults and Application Domain
- From: Adam Leonard <email@hidden>
- Date: Fri, 5 May 2006 18:06:35 -0700
You can do it with NSUserDefaults too with persistent domains.
Here is an example (typed in Mail)
NSMutableDictionary *defaults = [[[NSUserDefaults
standardUserDefaults]persistantDomainForName:@"[your app identifier]"]
mutableCopy];
//mess with the dictionary
[[NSUserDefaults standardUserDefaults]
removePersistentDomainForName:@"[app identifier]"];
[[NSUserDefaults standardUserDefaults]setPersistantDomain:defaults
forName:@"[app identifier]"];
On May 5, 2006, at 4:43 PM, David Alter wrote:
NSUserDefaults saves the application defaults into ~/Library/
Preference/<application identifier>. Now that is fine in most cases
but I'm writing a plugin and I do not want my preferences saves in
the applications preferences file. Is there any way to use
NSUserDefaults and over ride the <application identifier> so my
plugin preferences are saved in their own file?
thanks for the help
-dave
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden