• 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
NSFileHandle notifications revisited
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSFileHandle notifications revisited


  • Subject: NSFileHandle notifications revisited
  • From: Andreas Monitzer <email@hidden>
  • Date: Thu, 2 Aug 2001 14:50:52 +0200

[displaying log files like tail -f does in an NSTextView]

I've now downloaded the tail source, and that's what a tail -f does (simplified):

int ch;
FILE *fp;

for (;;) {
while ((ch = getc(fp)) != EOF) {
putchar(ch);
}
[wait 1 sec]
}

Well, not something I'd consider a clean code, but I'll do it that way.

andy
--
"He was addicted to life. But we cured him"


  • Follow-Ups:
    • Re: NSFileHandle notifications revisited
      • From: Finlay Dobbie <email@hidden>
  • Prev by Date: NSInvocation - MAJOR BUG? help!!
  • Next by Date: RE: NSInvocation - MAJOR BUG? help!!
  • Previous by thread: RE: NSInvocation - MAJOR BUG? help!!
  • Next by thread: Re: NSFileHandle notifications revisited
  • Index(es):
    • Date
    • Thread