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
Delivered-to: email@hidden
Delivered-to: email@hidden
Dkim-signature: v=1; a=rsa-sha1; c=relaxed; d=alastairs-place.net; h=cc: message-id:from:to:in-reply-to:content-type: content-transfer-encoding:mime-version:subject:date:references; q= dns/txt; s=aug07; bh=rCaSdxynzoHBmpSo5vQlPiqTZ+U=; b=NnXVxPrQqYA ChAiCJ2eS7i/9I9fsUc0eGI+/JzFOde8z0W4Zj3qkkPPJfr0LDHSkYUH3LysrMhd 6/QuW5MxQw+OVkfMcnsDrE63g6p+vnfkw26K3jKlTZqgyJT0izHIImTa5YtIS8kT YquUIhn41Z/GcuS7lmmuASo7UMQJffCM=
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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden
This email sent to email@hidden
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.