开发者

Displaying a programs output in Cocoa

开发者 https://www.devze.com 2023-01-04 17:07 出处:网络
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 ou

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

精彩评论

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

关注公众号