• 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: CLI calls
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: CLI calls
      • From: Finlay Dobbie <email@hidden>
References: 
 >Re: CLI calls (From: Finlay Dobbie <email@hidden>)

  • Prev by Date: Re: CLI calls
  • Next by Date: Flipped image dragging - bug or feature?
  • Previous by thread: Re: CLI calls
  • Next by thread: Re: CLI calls
  • Index(es):
    • Date
    • Thread