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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to