• 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
A File has Changed or the Source of Tail
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: A File has Changed or the Source of Tail
      • From: OS X AIBO <email@hidden>
    • Re: A File has Changed or the Source of Tail
      • From: Sherm Pendley <email@hidden>
  • Prev by Date: Re: NSTableView and check boxes (for the hundredth time)
  • Next by Date: NSUIElement
  • Previous by thread: Re: Window close
  • Next by thread: Re: A File has Changed or the Source of Tail
  • Index(es):
    • Date
    • Thread