Contents

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