How may I combine a Commandline Tool and a Cocoa Application into one App using XCode?
Finally I need to show the output of the Commandline Tool (stdout and stderr) to a NSTextBox.
How may I combine a Commandline Tool and a Cocoa Application into one App using XCode?
Finally I need to show the output of the Commandline Tool (stdout and stderr) to a NSTextBox.
Drag the binary project (or add) as a dependency of the main project. This means that it will always be built before the main projects.
Next add a copy bundle resources build phase (or use an existing one) and drag the binary product from the binary project in. This will copy the resulting binary from the first build into the bundle created by the second build.
To run the binary you need to get its path using NSBundle
and then run it using NSTask
.