• 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: Chris Ross <email@hidden>
  • Date: Fri, 6 Sep 2002 16:45:55 +0100

It is a simple function call eg:

- (void)somefunction
{
pid_t thePid = getppid(); /* get the parents process id */

/* do what you want with thePid [treat it like an int] */
......
}

Regards,

Chris

On Friday, September 6, 2002, at 04:25 pm, Renaud Boisjoly wrote:

This may be a dense question, but I've never called a BSD function... what's the concept in doing this from within Cocoa?

I guess I include the right header files, but what does a call look like per se?

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

On Friday, September 6, 2002, at 04:08 , Renaud Boisjoly 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.

--
Chris Ross - email@hidden - http://www.darkrock.co.uk
Ferite Programming Language - http://www.ferite.org
_______________________________________________
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.

References: 
 >Re: Get parent process (Carbon question) (From: Renaud Boisjoly <email@hidden>)

  • Prev by Date: Re: Get parent process (Carbon question)
  • Next by Date: NSWorkspace - getting info about other applications
  • Previous by thread: Re: Get parent process (Carbon question)
  • Next by thread: Re: Get parent process (Carbon question)
  • Index(es):
    • Date
    • Thread