Re: Detecting if app is being run from Xcode
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