Re: Dir of app
Re: Dir of app
- Subject: Re: Dir of app
- From: "Wesley Smith" <email@hidden>
- Date: Tue, 18 Dec 2007 23:42:03 -0800
> You asked a second question about file modification notification. As
> you know, Leopard has FSEvents. In Tiger (and possibly earlier Mac OS
> releases as well) there is a kernel event notification system called
> "kqueue". You can "man kqueue" to get more info. But for us Cocoa
> developers, Uli Kusterer has created a nice wrapper which is available
> at http://www.zathras.de/angelweb/sourcecode.htm#UKKQueue. I use this
> in my application.
Thanks for this info. It works beautifully! One question about the
sequencing of these events. I'm watching a file while a text editor
saves it and get 2 notifications:
2007-12-18 23:39:14.324 luaAV[1461] Watching
UKKQueueFileAttributesChangedNotification
2007-12-18 23:39:14.325 luaAV[1461] Watching UKKQueueFileDeletedNotification
Why would I get a UKKQueueFileDeletedNotification after a
UKKQueueFileAttributesChangedNotification? That seems odd to me and
if I hadn't known better I would have naively programmed logic in my
app thinking that the file no longer existed but it is definitely
still there. Any clues?
thanks,
wes
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden