Accepting file promise drags
Accepting file promise drags
- Subject: Accepting file promise drags
- From: John Dalbec <email@hidden>
- Date: Sat, 27 Sep 2008 12:51:34 -0400
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@hidden)
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:
This email sent to email@hidden