Turning a command line app into a Cocoa GUI app on

2019-02-03 23:57发布

Is there any tutorials or references, if such thing is possible, to make GUI applications out of command line apps?
What I mean is, having a command line app, wrap it into an app bundle and create a Cocoa GUI app that would have a simple interface to execute the command line app with its flags and parameters.

2条回答
Lonely孤独者°
2楼-- · 2019-02-04 00:33

For very simple scripts, I recommend Platypus. For more complicated scenarios, you could try something like Pashua.

查看更多
smile是对你的礼貌
3楼-- · 2019-02-04 00:47

As a matter of fact there are. Here is the first hit for a Google search:

What you're looking for is the NSTask class. Check out the documentation for all the information you need.

查看更多
登录 后发表回答