Hi, is it possible to find (using NSBundle) or determine (using NSTask) an installed tool (say this tool is installed in /usr/local/bin/ directory) and when get it's path, then run it from my app as a subtask?
I'm trying this but without success: [code] NSTask *DPSetBit0; DPSetBit0 = [[NSTask alloc] init]; [DPSetBit0 setLaunchPath: @"/usr/local/bin"]; [DPSetBit0 launch]; [/code] but when compiling get errors: Compiling file MainController.m ... MainController.m: In function ‘-[MainController DPbitSetReset:]’: MainController.m:133: error: a label can only be part of a statement and a declaration is not a statement make[3]: *** [obj/LPT_Interface.obj/MainController.m.o] Error 1 make[2]: *** [internal-app-run-compile-submake] Error 2 make[1]: *** [LPT_Interface.all.app.variables] Error 2 make: *** [internal-all] Error 2 -- Regards, Paul Chany <http://sourceforge.net/projects/lptinterface/> <http://savannah.nongnu.org/projects/lpt-interface/> <http://csanyi-pal.info> _______________________________________________ Discuss-gnustep mailing list [email protected] http://lists.gnu.org/mailman/listinfo/discuss-gnustep
