Re: to NSTask or not to NSTask
Re: to NSTask or not to NSTask
- Subject: Re: to NSTask or not to NSTask
- From: Nathan Day <email@hidden>
- Date: Fri, 6 May 2005 19:13:20 +1000
You could always use the c function system
.
On 02/05/2005, at 9:17 PM, email@hidden wrote:
As long as you don't have to do any kind of file redirection, and
you know how to handle the output (if there is any), you can set /
bin/sh as your launch path. "-c" will be your first argument in
your array, the actual tool would be the second argument, and the
rest of the arguments would be whatever arguments you send to the
tool. Should be pretty straightforward, and I'm not aware of any
other way of launching a command line tool in Cocoa except for
NSTask. I could be wrong, tho.
James
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
Nathan Day
email@hidden
http://homepage.mac.com/nathan_day/
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden