Re: killing background processes with UNIX in cocoa?
Re: killing background processes with UNIX in cocoa?
- Subject: Re: killing background processes with UNIX in cocoa?
- From: Alastair Houghton <email@hidden>
- Date: Thu, 31 Jan 2008 11:32:28 +0000
On 31 Jan 2008, at 06:44, Nathaniel Gottlieb-Graham wrote:
I'm probably being really stupid here, how in Cocoa do you run UNIX
commands?
You use NSTask to run UNIX commands, but you would use an NSTask to
kill processes. (BTW, *PLEASE* put *all* of your question in the body
of your e-mail, even if some of it is a repeat of your subject line;
don't put half in the subject line and half in the message, because
sometimes people won't see all of it.)
You're probably looking for the UNIX kill() function, though you
shouldn't use that on GUI applications (instead, send them a quit
Apple Event---see <http://www.cocoabuilder.com/archive/message/cocoa/2005/12/10/152304
> for an example).
Kind regards,
Alastair.
--
http://alastairs-place.net
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden