Displaying a programs output in Cocoa
What view would be the best view for displaying text from the console? In particular output of a C program? For example if I used system("gcc foo.c");
in my program and then wanted to display the outpu开发者_如何学Got of that what view would a I use and how would I display it? Also, how would I get input too?
You may want to have a look at the NSTask class. It allows you to call external programs, and then read and write to them using NSPipes.
精彩评论