• 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: How test whether Mac app is running in Xcode?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: How test whether Mac app is running in Xcode?
      • From: Bill Cheeseman <email@hidden>
References: 
 >How test whether Mac app is running in Xcode? (From: Bill Cheeseman <email@hidden>)

  • Prev by Date: Re: NSTreeController: how do I select a model object?
  • Next by Date: Re: How test whether Mac app is running in Xcode?
  • Previous by thread: Re: How test whether Mac app is running in Xcode?
  • Next by thread: Re: How test whether Mac app is running in Xcode?
  • Index(es):
    • Date
    • Thread