• 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
NSUserDefaults and using volatile domains
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: Should I prefix my private instance variables?
  • Next by Date: Re: How to access the value that a pointer is pointing to
  • Previous by thread: NSScrollView flicker
  • Next by thread: Distributed objects: connecting to a process running as root?
  • Index(es):
    • Date
    • Thread