0

I have subclass a NSView with NSDraggingDestination to handle drag-and-drop function. Now, I can get draggingEntered, draggingUpdated, performDragOperation callback when I drag a file from Finder to my view.

But when I drag a picture from Photos.app to my view. there is no any function be called. no draggingEntered, draggingUpdated, performDragOperation.

I use below function to register
[self registerForDraggedTypes:[NSArray arrayWithObject:NSFilenamesPboardType]];

PS. OSX version 10.11.6, XCode 7.3

Does anyone know how to get callback when drag picture from Photos.app? Thank you for help.

Jerry YY Rain
  • 4,134
  • 7
  • 35
  • 52
  • Possible duplicate of [How can my OS X app accept drag-and-drop of picture files from Photos.app?](http://stackoverflow.com/questions/30110525/how-can-my-os-x-app-accept-drag-and-drop-of-picture-files-from-photos-app) – Willeke Aug 03 '16 at 15:11
  • I have checked this link, but in answer, it can get these callback, but I can not get any. :( – Jerry YY Rain Aug 04 '16 at 02:08
  • Did you register for promised files? – Willeke Aug 04 '16 at 05:12

0 Answers0