• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Drag and Drop from Photos
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Drag and Drop from Photos
      • From: Graham Cox <email@hidden>
References: 
 >Drag and Drop from Photos (From: Graham Cox <email@hidden>)

  • Prev by Date: Re: Work with AddressBook without blocking the main thread
  • Next by Date: Re: Work with AddressBook without blocking the main thread
  • Previous by thread: Drag and Drop from Photos
  • Next by thread: Re: Drag and Drop from Photos
  • Index(es):
    • Date
    • Thread