• 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
Error in NSTask launch
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Error in NSTask launch


  • Subject: Error in NSTask launch
  • From: development2 <email@hidden>
  • Date: Thu, 16 Oct 2008 19:49:23 -0600

I know it is something I am doinig but I am getting an error I can't seem to figure out. Here the code and then the error.

NSString *exePath = [[NSBundle bundleWithIdentifier:@"com.yourcompany.SetupDevice"] pathForResource:@"upnpsearch" ofType:@""];

	RunCommand *command = [[RunCommand alloc] initWithPath:exePath];
		// set up the args
	NSNumber *time = [NSNumber numberWithInt:15];
	NSString *destPath = [NSString stringWithString:@"/tmp"];

	NSArray *myArray = [NSArray arrayWithObjects: time, destPath, nil];
	[command setArgs:myArray];

	int result = [command execute];

Now in execute tI have the call:

[task launch];

I get the error:
2008-10-16 19:36:21.530 Installer[39330:813] *** -[NSCFNumber fileSystemRepresentation]: unrecognized selector sent to instance 0x3fbe9a20
(gdb) continue
2008-10-16 19:36:24.751 Installer[39330:813] *** -[NSCFNumber fileSystemRepresentation]: unrecognized selector sent to instance 0x3fbe9a20


Now I know this is on the arguments that I am passing in to the command line, but they look fine to em (Above in code) can anyone else see anything wrong?

Thanks,

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Error in NSTask launch
      • From: Rob Keniger <email@hidden>
    • Re: Error in NSTask launch
      • From: Roland King <email@hidden>
    • Re: Error in NSTask launch
      • From: Nick Zitzmann <email@hidden>
  • Prev by Date: Re: table bindings, value transformer per row?
  • Next by Date: Re: Error in NSTask launch
  • Previous by thread: Re: Object is not reachable from this managed object context
  • Next by thread: Re: Error in NSTask launch
  • Index(es):
    • Date
    • Thread