Simple Way to Do Unix/Terminal Commands in Cocoa?

Discussion in 'Mac Programming' started by Virtualball, Feb 15, 2007.

  1. macrumors 6502

    Joined:
    Jun 5, 2006
  2. macrumors 601

    HiRez

    Joined:
    Jan 6, 2004
    Location:
    Western US
    #2
    You probably want to use NSTasks, with NSPipes and NSFileWrappers to do bi-directional communication, if required. Have a look at the docs for those and I think there's some example code.
     

Share This Page