• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Getting the parent process name
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Getting the parent process name (From: Mark Williams <email@hidden>)
 >Re: Getting the parent process name (From: Mark Williams <email@hidden>)

  • Prev by Date: Re: Sorting ABPerson array with NSSortDescriptors
  • Next by Date: How to debug during Unit Test (otest)
  • Previous by thread: Re: Getting the parent process name
  • Next by thread: Set text color of text field
  • Index(es):
    • Date
    • Thread