outlineView(_:draggingSession:endedAt:operation:)
Implement this method to know when the given dragging session has ended.
Declaration
@MainActor optional func outlineView(_ outlineView: NSOutlineView, draggingSession session: NSDraggingSession, endedAt screenPoint: NSPoint, operation: NSDragOperation)Parameters
- outlineView:
The outline view in which the drag began.
- session:
The dragging session that ended.
- screenPoint:
The point onscreen at which the drag ended.
- operation:
A mask specifying the types of drag operations permitted by the dragging source.
Discussion
You can implement this optional delegate method to know when the dragging source operation ended at a specific location, such as the trash (by checking for an operation of delete).
See Also
Instance Methods
outlineView(_:acceptDrop:item:childIndex:)outlineView(_:child:ofItem:)outlineView(_:draggingSession:willBeginAt:forItems:)outlineView(_:isItemExpandable:)outlineView(_:itemForPersistentObject:)outlineView(_:namesOfPromisedFilesDroppedAtDestination:forDraggedItems:)outlineView(_:numberOfChildrenOfItem:)outlineView(_:objectValueFor:byItem:)outlineView(_:pasteboardWriterForItem:)outlineView(_:persistentObjectForItem:)outlineView(_:setObjectValue:for:byItem:)outlineView(_:sortDescriptorsDidChange:)outlineView(_:updateDraggingItemsForDrag:)outlineView(_:validateDrop:proposedItem:proposedChildIndex:)outlineView(_:writeItems:to:)