Getting output of a shell script in Cocoa

Posted by Tristan Seifert on Stack Overflow See other posts from Stack Overflow or by Tristan Seifert
Published on 2010-05-16T05:32:31Z Indexed on 2010/05/16 5:40 UTC
Read the original article Hit count: 498

Filed under:
|
|
|

Is there a way that lets me run a shell script, and display the output in an NSTextView? I do not want any input from the user to the shell script at all, since is is just called to compile a buch of files. The shell script part works fine so far, but I just can't figure out how to run it and show the output in an NSTextView. I know a shell script can be run using system() and NSTask, but how do I get it's output into an NSTextView?

© Stack Overflow or respective owner

Related posts about cocoa

Related posts about shellscript