Re: Calling a unix command from Cocoa ?
Re: Calling a unix command from Cocoa ?
- Subject: Re: Calling a unix command from Cocoa ?
- From: Scott Anguish <email@hidden>
- Date: Fri, 8 Nov 2002 18:39:51 -0500
On Friday, November 8, 2002, at 01:59 PM, Robert Miller wrote:
OK, here's a dumb question. Can anyone tell me if it is possible to
call a unix command from within a running Cocoa application ? (in my
case flex and bison) ? And if so, what's the secret ? For some reason
there doesn't seem to be any documentation or examples available on
this topic unless I'm missing something which is entirely possible..
NSTask is what you're missing... loads of docs and examples.
Apple's Moriarity example implements this
http://developer.apple.com/samplecode/Sample_Code/Cocoa/Moriarity.htm
OpenUp does this in it's source code
http://softrak.stepwise.com/display?pkg=790&os=20
(shameless plug.. it's also covered in our book "Cocoa Programming"
(www.cocoaprogramming.net).. )
_______________________________________________
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.