Questions tagged [nsdraggingdestination]
3 questions
0
votes
0 answers
Snapping (constraining drag item's position) during NSDraggingSession
I am looking for a way how to constrain the NSDraggingItem position during dragging. I first checked if the enumerateDraggingItemsWithOptions: method could help. I tried to set the draggingFrame of each enumerated item to (my) snap position. It…

Jared
- 130
- 1
- 7
0
votes
1 answer
How do I implement drag-and-drop from Photos to my Cocoa app with full quality?
In my drag destination view (NSView subclass), I have implemented:
override func performDragOperation(_ draggingInfo: NSDraggingInfo) -> Bool {
// check for Photos promises
var gotPromised = false
…

Jaanus
- 17,688
- 15
- 65
- 110
0
votes
1 answer
What methods are obligatory in the NSDraggingDestination protocol?
In the Docs of the protocol NSDraggingDestination, it says that:
A set of methods that the destination object (or recipient) of a
dragged image must implement.
Then follows nine methods. But I only implemented 3 out of those nine methods (in my…

Bob Ueland
- 1,804
- 1
- 15
- 24