• 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
Re: LSEnvironment
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Re: How do I force XCode to find the right header file?
  • Next by Date: Determining what apps are installed on Tiger
  • Previous by thread: Re: LSEnvironment
  • Next by thread: Re: LSEnvironment
  • Index(es):
    • Date
    • Thread