Re: Task create failed error for NSTask
Re: Task create failed error for NSTask
- Subject: Re: Task create failed error for NSTask
- From: Kurt Revis <email@hidden>
- Date: Thu, 15 Nov 2001 12:48:53 -0800
On Thursday, November 15, 2001, at 12:25 PM, Fei Li wrote:
Hello all,
I tried to launch a application named "abc.app" use NSTask, I write code
as follows:
NSArray * args = [[NSArray alloc] initWithObjects:@"2", nil];
[NSTask launchedTaskWithLaunchPath:@"/Users/feil/Desktop/abc.app"
arguments:args];
I always get error message:Task create for path abc.app failed.
You need to run the actual executable file, inside of the app wrapper.
Change the path to "/Users/feil/Desktop/abc.app/Contents/MacOS/abc".
--
Kurt Revis
email@hidden