Re: DirWatch
Re: DirWatch
- Subject: Re: DirWatch
- From: Jens Alfke <email@hidden>
- Date: Thu, 22 May 2008 19:08:20 -0700
On 22 May '08, at 4:33 PM, Jerry Krinock wrote:
Don't do that. The solution for this problem has been built into
the system since Mac OS 10.2 or .3, as noted by Robert:
UKQueue by Uli
<http://www.zathras.de/angelweb/sourcecode.htm>
We're going in circles now. Lorenzo already said in his first post
that he's using FNSubscribe, which is the same thing UKQueue uses.
And if your target is Mac OS 10.5 or later, look into FSEvents.
FSEvents still doesn't tell you what specific files changed, only that
a directory changed. (For the same reason: the volume of notifications
would be too high otherwise.)
I'm not sure what the answer to the problem is. It might involve
checking the directory a few times, a few seconds apart, to see
whether any new file's mod date is still changing, and holding off
till it stops.
—Jens
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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