Contents

tableView(_:draggingSession:endedAt:operation:)

Implement this method to determine when a dragging session has ended.

Declaration

@MainActor optional func tableView(_ tableView: NSTableView, draggingSession session: NSDraggingSession, endedAt screenPoint: NSPoint, operation: NSDragOperation)

Parameters

  • tableView:

    The table view.

  • session:

    The dragging session.

  • screenPoint:

    The ending drag location in screen coordinates.

  • operation:

    The drag operation. See Nsdragoperation for supported values.

Discussion

This delegate method can be used to determine when the dragging source operation ended at a specific location, such as the trash, by checking for an operation of delete.

See Also

Drag and Drop