• 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
Kqueues TOO fast
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Kqueues TOO fast


  • Subject: Kqueues TOO fast
  • From: Ken Tozier <email@hidden>
  • Date: Sun, 18 Jul 2004 05:13:11 -0400

I'm using kqueues to monitor some files and have found them to be too fast in the case where external processes create new files in a watch folder. Is there a way to detect when a write starts and when it ends? I wrote a delay loop that uses NSString stringWithContentsOfFile and compare that string against an empty string, but it seems pretty crude and could fail if an external process writes a larger file to the watch folder.

Is there a more elegant way to do this?

Thanks,

Ken
_______________________________________________
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: Kqueues TOO fast
      • From: Creed Erickson <email@hidden>
  • Prev by Date: Re: How to make an application non-executable?
  • Next by Date: Re: iChat perspective view
  • Previous by thread: Re: I've lost my MainMenu.
  • Next by thread: Re: Kqueues TOO fast
  • Index(es):
    • Date
    • Thread