A File has Changed or the Source of Tail
A File has Changed or the Source of Tail
- Subject: A File has Changed or the Source of Tail
- From: "Gerriet M. Denkmann" <email@hidden>
- Date: Thu, 3 Oct 2002 13:28:45 +0200
On Donnerstag, Oktober 3, 2002, at 12:06 , cocoa-dev-
email@hidden wrote:
Date: Wed, 2 Oct 2002 22:25:29 +0100
Subject: Re: waitForDataInBackgroundAndNotify
From: Mike Davis <email@hidden>
What you really need is to be notified when the file changes right?
Yes.
I know on NT that you can do that but I've no idea under the BSD API (I
wish I did!).
Well, tail -f does it, so there really must be a way to do it. Maybe
some kind soul can send me the source of tail? I really do not want to
load the complete Darwin source through my 56k modem.
To answer my own questions: waitForDataInBackgroundAndNotify does create
its own thread - the caller has nothing to do except registering for the
notification.
But: it seems to notify about available data, and not of data beyond the
current offsetInFile, nor of a changed modification date of the file or
anything.
So it is quite useless for my purposes.
Gerriet.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.