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

后端 未结 2 737
清歌不尽
清歌不尽 2020-12-29 16:40

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 in

相关标签:
2条回答
  • 2020-12-29 16:53

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

    0 讨论(0)
  • 2020-12-29 17:04

    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.

    0 讨论(0)
提交回复
热议问题