Hello,
I am having some difficulty with NSTask. All I am trying to do is launch a task (actually "make"). The code works fine on MacOSX and in a mingw32 shell on Windows 2000. However, I am unable to get NSTask to launch anything in the native Windows command prompt. (My executable uses only the foundation classes and runs in a shell.)
Here is my code:
NSTask *task = [NSTask new];
[task setLaunchPath:@"make"];
[task setArguments:[NSArray arrayWithObjects:@"-j",@"3", nil]];
[task setCurrentDirectoryPath:folderName];
[task launch];
[task waitUntilExit];
[task release];
Here is the error I get:
2004-07-16 17:30:36.186 bnetrun[3856] Error launching task: F:\GNUstep\Development\msys\1.0\bin\make.exe
Notice that if I attempt to launch another program I get the same error:
2004-07-16 17:31:36.196 bnetrun[3857] Error launching task: F:\GNUstep\Development\msys\1.0\bin\cmd.exe
Any help here would be greatly appreciated, Todd Riley
_______________________________________________ Help-gnustep mailing list [EMAIL PROTECTED] http://lists.gnu.org/mailman/listinfo/help-gnustep
