Re: NSTask argument list
Re: NSTask argument list
- Subject: Re: NSTask argument list
- From: Graham Cox <email@hidden>
- Date: Sun, 26 Jun 2016 15:29:15 +1000
> On 26 Jun 2016, at 3:22 PM, email@hidden wrote:
>
> If it helps, you can think of it as an object oriented wrapped around C system calls that keeps track of PID and all the other bits like stdout and so on.
> That helps to grok why the args is and array and the tool is separate.
Yep, it makes perfect sense, and is a good fit for my needs.
A follow up question, but this may be something that I’ll just have to grok from the ffmpeg documentation - is there a way to get feedback from the ffmpeg tool while it’s running, via NSTask? It writes a log to stderr, and there are settings to control how verbose that is, but it would be necessary to parse the text output to look for specific things. I need to know whether the input stream has finished, or how big the output file has become. The latter I may be able to do by looking at the file itself, not sure about the first bit.
—Graham
_______________________________________________
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