开发者

Creating a GUI for a command-line utility using Cocoa

开发者 https://www.devze.com 2023-01-07 11:28 出处:网络
I\'m looking for a way to create a GUI (using Cocoa) to make a command-line utility more accessible to some of my colleagues. If you use NSTask to execute/start the utility, can you开发者_开发问答 the

I'm looking for a way to create a GUI (using Cocoa) to make a command-line utility more accessible to some of my colleagues. If you use NSTask to execute/start the utility, can you开发者_开发问答 then simply use another NSTask to execute the next command (using the utility launched in the previous step)? Does it use the same session, in other words? I hope my question is clear enough.


It's been awhile but IIRC then yes the NSTask does execute in the same session. I know for certain that it does capture the apps entire stdio unless you tell it otherwise.

0

精彩评论

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