开发者

Turning a command line app into a Cocoa GUI app on Mac OS X?

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 开发者_C百科have a simple interface to execute the command line app with its flags and parameters.


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

  • Cocoa Dev Central: Wrapping UNIX Commands

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


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

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜