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: 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