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

Re: Error in NSTask launch


  • Subject: Re: Error in NSTask launch
  • From: development2 <email@hidden>
  • Date: Thu, 16 Oct 2008 20:26:52 -0600

Yep... I have been at this too long today. I read that and completely disregarded it.

Thanks again.


On Oct 16, 2008, at 7:56 PM, Nick Zitzmann wrote:


On Oct 16, 2008, at 7:49 PM, development2 wrote:

	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];


From the documentation: "arguments - An array of NSString objects that supplies the arguments to the task."

Note that it doesn't mention NSNumber in the documentation, so it doesn't surprise me if some exceptions were raised. So if you change that "15" to a string, then it should work.

Nick Zitzmann
<http://www.chronosnet.com/>





_______________________________________________

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


References: 
 >Error in NSTask launch (From: development2 <email@hidden>)
 >Re: Error in NSTask launch (From: Nick Zitzmann <email@hidden>)

  • Prev by Date: Converting from HTML
  • Next by Date: Re: [Moderator]Re: iPhone Development Mailing List
  • Previous by thread: Re: Error in NSTask launch
  • Next by thread: Re: Error in NSTask launch
  • Index(es):
    • Date
    • Thread