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 (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]