开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜