Re: Drag and Drop from Photos
Re: Drag and Drop from Photos
- Subject: Re: Drag and Drop from Photos
- From: Ken Thomases <email@hidden>
- Date: Sat, 25 Apr 2015 21:10:16 -0500
On Apr 25, 2015, at 8:37 PM, Graham Cox <email@hidden> wrote:
> I’d like a user to be able to directly drag and drop an image from Photos into my app. Currently the drag is rejected, though I’m registering for all of the usual types - NSURLs, Filenames, Images, etc. How can I find out what drag flavours I need to support to enable this? The Finder accepts drags from Photos.
You can use the ClipboardViewer sample app to look at the drag pasteboard after a drag attempt.
<https://developer.apple.com/library/mac/samplecode/ClipboardViewer/Introduction/Intro.html>
You could also register to receive public.data and public.content, to accept almost anything and then log the actual types in a drag from Photos.
Regards,
Ken
_______________________________________________
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