• 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: Dir of app
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Re: Dir of app (From: Gregory Weston <email@hidden>)
 >Re: Dir of app (From: "Wesley Smith" <email@hidden>)
 >Re: Dir of app (From: Alan Pearson <email@hidden>)

  • Prev by Date: RE: [Bulk] Re: Custom NSView not redrawing
  • Next by Date: Re: Dir of app
  • Previous by thread: Re: Dir of app
  • Next by thread: Re: Dir of app
  • Index(es):
    • Date
    • Thread