• 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: Graham Cox <email@hidden>
  • Date: Sun, 26 Jun 2016 18:22:35 +1000

> On 26 Jun 2016, at 4:58 PM, Sandor Szatmari <email@hidden> wrote:
>
> You can either asynchronously monitor the task's output with notifications, or I have read about a new API, but never used it, -setReadabilityHandler:^(NSFileHandle* file)
>
> Sandor
>


Thanks!

I was able to set a readability handler on a NSPipe, set as stdout for the NSTask. ffmpeg has a -progress option which spews a bit of easily-parsed text to the pipe, so I was able to extract the info I wanted from that. All pretty straightforward in the end.

—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


References: 
 >NSTask argument list (From: Graham Cox <email@hidden>)
 >Re: NSTask argument list (From: Marco S Hyman <email@hidden>)
 >Re: NSTask argument list (From: Graham Cox <email@hidden>)
 >Re: NSTask argument list (From: email@hidden)
 >Re: NSTask argument list (From: Graham Cox <email@hidden>)
 >Re: NSTask argument list (From: Sandor Szatmari <email@hidden>)

  • Prev by Date: Re: Is windowControllerDidLoadNib used only when windowNibName is?
  • Next by Date: Re: Security with Streams
  • Previous by thread: Re: NSTask argument list
  • Next by thread: Re: NSTask argument list
  • Index(es):
    • Date
    • Thread