I can't. Think about the FNSubscribe tells me that there is something new because the user copied 2 new files into that folder, but only one file is totally copied, the other one is still in copying. So now I scan the folder with directoryContentsAtPath I compare with the previous list and I know that there are 2 new files. Well, one file is totally copied and the other one could be still in copying.
Best Regards -- Lorenzo email: [EMAIL PROTECTED] > From: Jens Alfke <[EMAIL PROTECTED]> > Date: Thu, 22 May 2008 16:35:01 -0700 > To: Lorenzo <[EMAIL PROTECTED]> > Cc: cocoa-dev@lists.apple.com > Subject: Re: DirWatch > > > On 22 May '08, at 3:32 PM, Lorenzo wrote: > >> Here I get the notification only "after" a file has been totally >> copied into >> the folder, but I can't yet find the way to know which file has been >> copied. >> Do you know how to get that info? Thanks. > > Just remember the previous list of files as an NSSet, then get the > current set of files and subtract the old one to see what's new. > > Jens _______________________________________________ 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]