Including a command line application in a Cocoa GUI application on Mac OS X?

Are there any tutorials or links, if possible, to make GUI applications from command line applications?
I mean, having a command line application, porting it to the application package and creating a Cocoa GUI application that will have a simple interface for running a command line application with its flags and parameters.

+6
command-line objective-c cocoa macos
source share
2 answers

Actually there is. Here is the first hit for Google search:

What you are looking for is the NSTask class. Check out the documentation for all the necessary information.

+9
source share

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

+5
source share

All Articles