Re: Get parent process (Carbon question)
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.