Re: Who's launching me?
Re: Who's launching me?
- Subject: Re: Who's launching me?
- From: Gen Kiyooka <email@hidden>
- Date: Tue, 14 Feb 2006 09:29:40 -0800
I took a quicklook at the other suggestions, but I don't think the
parent process ID is going
to help you. That might be of assistance if your app was created by
fork in the caller,
but most applications will be launching you through launch services
which has it's own daemon.
Perhaps an incoming Apple event will be more useful for determining
the actual source of the launch.
On Feb 12, 2006, at 3:24 PM, Gregory Weston wrote:
Paul J. Lucas wrote:
Is there any way for an application to know what other
application launched it?
I want to be able to distinguish between being launched via the
Finder and launched as an "external editor" for some other
application, e.g. iPhoto.
Someone's probably already responded (I've got digest lag) but just
in case, check out the getppid()
function._______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden