Re: LSEnvironment
Re: LSEnvironment
- Subject: Re: LSEnvironment
- From: Greg Guerin <email@hidden>
- Date: Fri, 17 Nov 2006 13:46:50 -0700
Dieter Oberkofler wrote:
>Thank you for your feedback but it somehow does not seem to work for a
>regular Carbon application.
It works here when I create a simple test case.
Steps:
1) Create a new Carbon Application project.
2) Edit main.c
3) add: #include <stdlib.h>
4) in HandleNew() function, add below ShowWindow() call:
system( "printenv" );
5) Add LSEnvironment dict and entries to Info.plist.
6) Build.
7) In Finder, double-click the app.
8) Observe output from printenv in Console.app's console log.
Xcode 2.2.1 or 2.4. OS 10.4.7, ppc or i386. Works for all.
LSEnvironment contained 2 or 3 of these entries:
jack : string : broke crown
jill : string : went up hill
squid : string : archie dux
The console log showed the LSEnvironment entries, and the inherited entries
from my .MacOSX/environment.plist, and also the inherited entries from
login.
-- GG
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden