views:

44

answers:

1

Disclaimer: Cocoa newbie here.

I wrote an app with a Cocoa GUI that acts as a wrapper for a command line tool. The problem is the tool does not come standard with OS X. Thus, you have to install the command line tool first before using the Cocoa app, or else the app won't function.

Can anyone point me to some documentation (hopefully, with examples), that can teach me how to install the command line tool when the user installs the app?

Thank you!

+1  A: 

Why not include your command line tool inside the bundle of your Cocoa app? This way your Cocoa app is completely self-contained and the issue of "installing" the command line tool does not even arise.

sigjuice
Awesome. Is this process documented somewhere like the Apple Dev site?
galacticfury
The Bundle Programming Guide should have more information. You could put your command-line tool in the Contents/MacOS directory inside your bundle (Table 2-5). Then use bundlePath or a similar method to determine the path to your command-line tool.
sigjuice
Genius. Many thanks!
galacticfury