• 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
Re: kqueue experiences or sample?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: kqueue experiences or sample?


  • Subject: Re: kqueue experiences or sample?
  • From: Nicholas Riley <email@hidden>
  • Date: Tue, 11 Nov 2003 14:11:03 -0600
  • Mail-followup-to: Dale Gillard <email@hidden>, email@hidden

On Tue, Nov 11, 2003 at 08:57:19PM +1100, Dale Gillard wrote:
> I have an app that has to poll the file system for directory and 'date
> modified' changes. Cocoa doesn't provide notifications for file system
> changes, and Carbon's implementation is very basic and not useful for
> my purposes.
>
> Panther's BSD layer now includes an implementation of kqueue/kevent.
> Has anyone tried using kqueue/kevent? Or even got some sample code
> they'd love to share?

Calum Robinson has written a daemon that adds kqueue-based filesystem
notification support to the Finder:

<http://homepage.mac.com/calumr/main.m>

It only checks the open windows at startup instead of polling, so it's
really just a demo, but it does seem to work. Some people have
mentioned that it has serious issues on network filesystems, so do
some testing first...

--
=Nicholas Riley <email@hidden> | <http://www.uiuc.edu/ph/www/njriley>
_______________________________________________
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.

References: 
 >kqueue experiences or sample? (From: Dale Gillard <email@hidden>)

  • Prev by Date: Re: Pure newbie :(
  • Next by Date: NSPopUpButtonCell?
  • Previous by thread: kqueue experiences or sample?
  • Next by thread: Import a jar package in a XCode CocoaJava project...
  • Index(es):
    • Date
    • Thread