• 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: NSTask argument list
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTask argument list


  • Subject: Re: NSTask argument list
  • From: Marco S Hyman <email@hidden>
  • Date: Sat, 25 Jun 2016 21:30:45 -0700

>
> 	NSString* argString = [NSString stringWithFormat:@"-i \"%@\" -c copy %@", [url absoluteString], [self.outputFileURL absoluteString]];
>
> 	self.ffMPEGTask = [NSTask launchedTaskWithLaunchPath:execPath arguments:@[argString]];

I believe arguments is an array of arguments, not an array containing a string that matches a command line.

> What the argument string should look like is:
>
> -i <source url> -c copy <dest file>

Then your arguments array should contain five items.

1: -i
2: <source url>
3: -c
4: copy
5: <dest file>



_______________________________________________

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: NSTask argument list
      • From: Graham Cox <email@hidden>
References: 
 >NSTask argument list (From: Graham Cox <email@hidden>)

  • Prev by Date: Re: NSTask argument list
  • Next by Date: Re: NSTask argument list
  • Previous by thread: Re: NSTask argument list
  • Next by thread: Re: NSTask argument list
  • Index(es):
    • Date
    • Thread