On Oct 15, 2013, at 4:12 AM, Bill Cheeseman <wjcheese...@gmail.com> 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 (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to