For completeness, I'd like to be able to accept file promise drags in my Cocoa application. What I want to do is to load an image file into the application after the drag source has written the file to the destination URL.

Is there any way for my application to receive a notification after the file has been completely written? I looked at kqueues and FSEvents and Workspace notifications but in each case I don't see a notification that the drag-source application has closed the file. Do I just have to keep attempting to load the image file each time I get notification of a change?

Also, it seems to me that applications are free to write files in ways that don't generate Workspace notifications. Am I missing something? Does NSWorkspace actually use one of the other mechanisms in the background?

Any suggestions?
Thanks,
John
_______________________________________________

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]

Reply via email to