On 17 Jun '08, at 7:04 PM, Omar Qazi wrote:
can I use those to get a notification when another application opens a file? If not is there any way I can achieve this?
No. You can't get notifications with that fine a granularity, because if the OS sent them, everything would slow to a crawl under the load of delivering so many.
The FSEvent API will tell you that something in a particular directory has changed. It doesn't tell you which file; if you need to know, you'll need to pre-scan the directory and cache the mod dates of all the files, then compare them after the notification.
—Jens
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]