• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Task create failed error for NSTask
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • An "interesting" bug involving NSDistributedNotifications
      • From: Charles Bennett <email@hidden>
  • Prev by Date: Task create failed error for NSTask
  • Next by Date: Re: Table view with widgets inside
  • Previous by thread: Re: Task create failed error for NSTask
  • Next by thread: An "interesting" bug involving NSDistributedNotifications
  • Index(es):
    • Date
    • Thread