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: Half Activist <email@hidden>
- Date: Tue, 15 Oct 2013 14:55:56 +0200
I'd suggest you give a look at getppid(), and try to retrieve the parent's path using sysctl with KERN_PROCARGS2.
For more info try google: sysctl KERN_PROCARGS2.
Regards.
On Oct 15, 2013, at 1:12 PM, email@hidden wrote:
> Date: Tue, 15 Oct 2013 07:12:11 -0400
> From: Bill Cheeseman <email@hidden>
> To: Cocoa-Dev Cocoa-Dev Mail <email@hidden>
> Subject: How test whether Mac app is running in Xcode?
>
>
> 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?
>
> I'm currently testing #ifdef DEBUG and simply assuming that Xcode is the only compiler/debugger available on the Mac. But I understand that isn't true.
>
> --
>
> Bill Cheeseman
_______________________________________________
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