Re: CLI calls
Re: CLI calls
- Subject: Re: CLI calls
- From: Todd Martin <email@hidden>
- Date: Mon, 13 Aug 2001 13:01:10 -0700
DOH! I should have realized I could still use system();
Well NSTask looks promising. It doesn't need to be anything horribly
complicated. It's basically just going to run a "make install" on
something at the click of a button. It would perhaps be nice to be able
to save the output or print it to the screen, but I'll take this one
step at a time. Thanks everyone for the help!
-todd
Finlay Dobbie wrote:
On Monday, August 13, 2001, at 08:42 pm, Todd Martin wrote:
to run CLI commands. I'm working on something that also needs to be
able to do this in Objective-C. I'm just now learning Cocoa and can't
find anything like this. If you can help I'd appreciate it, thanks
folks.
You can still use system() in your Cocoa apps, but you might like to
look into the NSTask object in Foundation. There are examples on usage
over at www.cocoadevcentral.com, too. And a fair bit of sample code
around, as well.
-- Finlay