Calling a CLI command withing the app
Calling a CLI command withing the app
- Subject: Calling a CLI command withing the app
- From: Jesper Nilsson <email@hidden>
- Date: Sat, 27 Oct 2001 12:52:28 +0200
Hi guys!
I have done some CLI apps in C for BSD before. They work great in osX.
But now i want to do a gui wrapper in Cocoa using NSTask. It works if I
use the true path to the CLI app in setLaunchPath. But I want to include
the CLI commands in the app.
How do I call them within the app from objC?
I tried lame things like this:
BitrateCalc = [[NSTask alloc] init];
[avi2mov setLaunchPath:@"myApp.app/resources/BitrateCalculator"];
But it doesn't like the LaunchPath.
/jesper nilsson