Re: Being notified of changes to a file
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