From: Brian M. <ma...@ex...> - 2008-02-15 17:04:58
|
Your code snapshot works for me. I've done some reorganization of my files, and now I can only find the Objective-C version of my test program, even in Time Machine. Trying to reconstruct the Ruby version produces a program that also works. Most likely I did something wrong. Sorry for the false bug report. On Feb 8, 2008, at 6:56 PM, kimura wataru wrote: > Hi, > > It works for me on 10.5.1. > LSEnvironment is available for apps launched via Launch Service. > - double-click in Finder > - launch with "open" command > > LSEnvironment is not available without Launch Service. > - "Run" on Xcode > - execute YourApp.app/Contents/MacOS/YourApp directly > > > On Thu, 7 Feb 2008 13:01:14 -0600, Brian Marick wrote: >> Using RubyCocoa from Leopard (10.5.1) : >> >> You can declare environment variables in a Cocoa app's Info.plist >> file >> like this: >> >> <key>LSEnvironment</key> >> <dict> >> <key>VEX</key> >> <string>acious!</string> >> </dict> >> >> In an Objective-C app, that value carries over into the environment: >> >> NSDictionary *env = [[NSProcessInfo processInfo] environment]; >> NSLog(@"====Here is the value of VEX in the processInfo >> environment: %@", >> [env objectForKey:@"VEX"]); > -- > kimura wataru > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Rubycocoa-talk mailing list > Rub...@li... > https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk ----- Brian Marick, independent consultant Mostly on agile methods with a testing slant www.exampler.com, www.exampler.com/blog, www.twitter.com/marick |