• 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: Simone Tellini <email@hidden>
  • Date: Tue, 15 Oct 2013 18:56:29 +0200

Il giorno 15/ott/2013, alle ore 18:10, Bill Cheeseman <email@hidden> ha scritto:

> But the "is it running in Xcode (or Instruments or whatever)?" question is not unique to Mavericks. What I find interesting is that NSWorkspace's -frontmostApplication and -menuBarOwningApplication and NSRunningApplication's currentApplication return different results in different circumstances.


could you solve this problem simply by setting a specific argument/environment variable in your scheme and checking for its existence at runtime?

Otherwise, there's also this: https://developer.apple.com/library/mac/qa/qa1361/_index.html

--
Simone Tellini
http://tellini.info




_______________________________________________

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


References: 
 >How test whether Mac app is running in Xcode? (From: Bill Cheeseman <email@hidden>)
 >Re: How test whether Mac app is running in Xcode? (From: Jens Alfke <email@hidden>)
 >Re: 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: NSTreeController: how do I select a model object?
  • 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