Implement this method to determine when a dragging session has ended.
SDK
- macOS 10.7+
Framework
- App
Kit
Declaration
optional func tableView(_ tableView: NSTable View, draggingSession session: NSDragging Session, endedAt screenPoint: NSPoint, operation: NSDrag Operation)
Parameters
tableView
The table view.
session
The dragging session.
screenPoint
The ending drag location in screen coordinates.
operation
The drag operation. See
NSDrag
for supported values.Operation
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
.