Re: Get parent process (Carbon question)
Re: Get parent process (Carbon question)
- Subject: Re: Get parent process (Carbon question)
- From: Renaud Boisjoly <email@hidden>
- Date: Fri, 6 Sep 2002 17:16:55 -0400
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:
If anyone has a few minutes, I'm a complete Carbon neophyte and I'm
trying to do something using Carbon
That's not a good idea ;)
which Cocoa does not seem to be able to do.
Well, Cocoa was designed to use BSD layer whenever necessary. Just try
"man getppid".
_______________________________________________
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.