• 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: Get parent process (Carbon question)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Get parent process (Carbon question)


  • Subject: Re: Get parent process (Carbon question)
  • From: Nathan Day <email@hidden>
  • Date: Sat, 7 Sep 2002 19:57:41 +0930

I have a wrapper for Apples Process Manager call NDProcess that lets you do that, it on my .Mac site

On Saturday, September 7, 2002, at 06:46 AM, Renaud Boisjoly wrote:

Hi again

Well, I've mastered getppid() and now know all about using unix functions in Cocoa... but the problem persists.

What I'm trying to do is figure out if my app was launched from the Finder or from my System Preference Pane...

So I started with Carbon, which will do what I need, but I cannot figure out. I was looking for a way to get the process id and then figure out the name of the process... but I nopw realise I do not knowhow to do this, apart from executing a ps command and parsing it out.

I thought I coul duse part of the Carbon stuff once I had the pid, but Carbon relies on a ProcessSerialNumber, which is different from the pid...

So I'm back to where I was, apart from doing an NSTask-type of thing, for something which seems simple in concept...

On Friday, September 6, 2002, at 10:59 AM, Ondra Cada wrote:


Nathan Day
http://homepage.mac.com/nathan_day/
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • gdb mycommand -withargsformycommand
      • From: "devdrvr.net Multi-Platform SW" <email@hidden>
References: 
 >Re: Get parent process (Carbon question) (From: Renaud Boisjoly <email@hidden>)

  • Prev by Date: Re: Printing
  • Next by Date: Re: Carbon books for Cocoa programmers
  • Previous by thread: Re: Get parent process (Carbon question)
  • Next by thread: gdb mycommand -withargsformycommand
  • Index(es):
    • Date
    • Thread