Instance Method

dragImageForRowsWithIndexes:tableColumns:event:offset:

Computes and returns an image to use for dragging.

Declaration

- (NSImage *)dragImageForRowsWithIndexes:(NSIndexSet *)dragRows tableColumns:(NSArray<NSTableColumn *> *)tableColumns event:(NSEvent *)dragEvent offset:(NSPointPointer)dragImageOffset;

Parameters

dragRows

An index set containing the row indexes that should be in the image.

tableColumns

An array of table columns that should be in the image.

dragEvent

The event that initiated the drag.

dragImageOffset

An in/out parameter specifying the offset of the cursor in the image, the default value is NSZeroPoint. Returning NSZeroPoint causes the cursor to be centered.

Return Value

An NSImage containing a custom image for the specified rows and columns participating in the drag.

See Also

Dragging

- canDragRowsWithIndexes:atPoint:

Returns a Boolean value indicating whether the table view allows dragging the rows with the drag initiated at the specified point.

- setDraggingSourceOperationMask:forLocal:

Sets the default operation mask returned by draggingSourceOperationMaskForLocal: to mask.

verticalMotionCanBeginDrag

A Boolean value indicating whether vertical motion is treated as a drag or selection change.

draggingDestinationFeedbackStyle

The feedback style displayed when the user drags over the table view.

- setDropRow:dropOperation:

Retargets the proposed drop operation.