• 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: Being notified of changes to a file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Being notified of changes to a file


  • Subject: Re: Being notified of changes to a file
  • From: "Finlay Dobbie" <email@hidden>
  • Date: Mon, 21 Jul 2008 17:13:54 +0100

On Mon, Jul 21, 2008 at 8:56 AM, Yann Disser <email@hidden> wrote:
> What I am trying to figure out, is how to respond right away to every single
> line that is written on stdout without waiting for the process to be
> finished.

There are many examples of this. See
<http://developer.apple.com/samplecode/Moriarity/index.html> for one
of them. You need to get an NSPipe, create a corresponding
NSFileHandle and use -readInBackgroundAndNotify.

 -- Finlay
_______________________________________________

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: Being notified of changes to a file
      • From: Yann Disser <email@hidden>
References: 
 >Being notified of changes to a file (From: Yann Disser <email@hidden>)
 >Re: Being notified of changes to a file (From: Jens Alfke <email@hidden>)
 >Re: Being notified of changes to a file (From: Yann Disser <email@hidden>)

  • Prev by Date: Re: webDAV (lite) framework?
  • Next by Date: Re: WebKit, programmatic form input, form submits
  • Previous by thread: Re: Being notified of changes to a file
  • Next by thread: Re: Being notified of changes to a file
  • Index(es):
    • Date
    • Thread