On Jan 11, 2009, at 9:48 PM, Eric Smith wrote:

I'm trying to get drag-and-drop to work, using the finder as a destination. I can drag my files into mail using NSTIFFPboardType. My draggingSourceOperationMaskForLocal returns NSDragOperationEvery. But, when I drag my file onto a finder window, I get no icon at all... no little green plus indicating a copy. My pasteboard: provideDataForType: is never called by the finder. How the heck to I get the finder to accept a drop??


Assuming you are trying to create a picture file here, you have to use the pasteboard type "CorePasteboardFlavorType 0x6675726C" to get the Finder to accept the drag, and it must contain a file URL string pointing to the source image that you must write to the disk somewhere. Or you could do a file promise drag instead; that's a lot easier now than it used to be a while ago.

Nick Zitzmann
<http://www.chronosnet.com/>



_______________________________________________

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 arch...@mail-archive.com

Reply via email to