Re: Getting the parent process name
Re: Getting the parent process name
- Subject: Re: Getting the parent process name
- From: "Sean McBride" <email@hidden>
- Date: Wed, 28 Jun 2006 17:06:59 -0400
- Organization: Rogue Research
On 2006-06-27 13:18, Mark Williams said:
>I should expand. I am trying to make sure here that the child was
>actually launched by the proper app and not from something else or
>the command line.
There is a difference between 'the parent process' and 'the process that
launched an app'.
The former you get with the posix API getppid(). The latter is a Mac
thing, and you get with the Process Manager.
See:
<http://www.cocoabuilder.com/archive/message/cocoa/2005/10/15/148134>
This is what I use to detect if I was launched as a login item or by the
Finder/Dock/etc.
--
____________________________________________________________
Sean McBride, B. Eng email@hidden
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
_______________________________________________
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