Re: How test whether Mac app is running in Xcode?
Re: How test whether Mac app is running in Xcode?
- Subject: Re: How test whether Mac app is running in Xcode?
- From: Jens Alfke <email@hidden>
- Date: Tue, 15 Oct 2013 07:48:25 -0700
On Oct 15, 2013, at 4:12 AM, Bill Cheeseman <email@hidden> wrote:
> Is there any way to test whether an application is running in Xcode or some other compiler/debugger, and not as a free-standing application? And then to get the name of the compiler/debugger?
Just curious: What is it you want to do with that information?
Keep in mind that technically there is no such thing as a ‘free-standing application’. Every user process has a parent. When you launch an app through ‘normal’ means, like from the Finder or Dock, its parent will be the launchd process that owns your login session. It’s also possible for an app’s parent process to be a tool like Instruments that isn’t technically a debugger. Or you could launch the app from a shell in which case its parent process is that shell.
—Jens
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden