• 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: Detecting if app is being run from Xcode
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Detecting if app is being run from Xcode


  • Subject: Re: Detecting if app is being run from Xcode
  • From: Joar Wingfors <email@hidden>
  • Date: Mon, 31 Aug 2009 08:36:59 -0700


On 31 aug 2009, at 06.27, Stuart Malin wrote:

I have in Xcode defined an environment variable to be set for the Executable, and my app code tests for this using getenv(). Straightforward and simple. Is there some other perhaps better way to do this? Also: is some environment variable that I can count on being set by Xcode itself, and so avoid defining my own.


I think that's the right solution to your problem. Setting your own environment variable (or passing a user default value in the arguments passed to the app) is probably the most robust thing to do.

j o a r


_______________________________________________ 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
References: 
 >Detecting if app is being run from Xcode (From: Stuart Malin <email@hidden>)

  • Prev by Date: Problem with Custom Text Macros on 3.2
  • Next by Date: Re: what new Xcode project template to use for a quicktime VDIG component?
  • Previous by thread: Detecting if app is being run from Xcode
  • Next by thread: PyObjc Cocoa Applications in Xcode 3.2?
  • Index(es):
    • Date
    • Thread