On 11.04.2011, at 07:18, Gary L. Wade wrote: > You might find the > FSEvents mechanism something to consider if you're watching a dump folder > where the originator application is something you have no control over. > There are also very-Darwin-level mechanisms for seeing if a file is open, > but those are not guaranteed to remain the same from one patch release to > the next.
There's also the BSD kqueue mechanism, You could use this to watch the parent folder, and once you find your file hasn't changed in a while, assume it's done and just try using it. I have a bunch of file watching classes (for FSEvents, FNNotify and KQueue) at http://www.github.com/uliwitness/UliKit Cheers, -- Uli Kusterer "The Witnesses of TeachText are everywhere..." http://www.zathras.de _______________________________________________ Cocoa-dev mailing list ([email protected]) 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]
