• 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: to NSTask or not to NSTask
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: to NSTask or not to NSTask
      • From: "M. Carlson" <email@hidden>
References: 
 >Re: to NSTask or not to NSTask (From: <email@hidden>)

  • Prev by Date: Re: posting message to text view from C-function
  • Next by Date: Re: posting message to text view from C-function
  • Previous by thread: Re: to NSTask or not to NSTask
  • Next by thread: Re: to NSTask or not to NSTask
  • Index(es):
    • Date
    • Thread