NSUserDefaults and using volatile domains
NSUserDefaults and using volatile domains
- Subject: NSUserDefaults and using volatile domains
- From: Jesse Wesson <email@hidden>
- Date: Sat, 29 Apr 2006 10:11:22 -0700
I would like to add a volatile domain (the process’ environment
variables) to the search path of my command line tool’s user
defaults. Once I add the dictionary though, all the keys return nil
(code snippet below). Once a volatile domain is added, is it not
included to the search path?
Jesse
[[NSUserDefaults standardUserDefaults] setVolatileDomain:
[[NSProcessInfo processInfo] environment]
forName:@"EnvironmentVariableDomain"];
NSString *path = [[NSUserDefaults standardUserDefaults]
objectForKey:@"PATH"];
NSLog( @"PATH=%@", path );
_______________________________________________
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