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.