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, cocoa-dev-requ...@lists.apple.com wrote: > Date: Tue, 15 Oct 2013 07:12:11 -0400 > From: Bill Cheeseman <wjcheese...@gmail.com> > To: Cocoa-Dev Cocoa-Dev Mail <cocoa-dev@lists.apple.com> > 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 (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