Instance Method

setDropRow:dropOperation:

Retargets the proposed drop operation.

Declaration

- (void)setDropRow:(NSInteger)row dropOperation:(NSTableViewDropOperation)dropOperation;

Parameters

row

The target row index.

operation

The drop operation. Supported values are specified by NSTableViewDropOperation.

Discussion

For example, to specify a drop on the second row, specify row as 1, and operation as NSTableViewDropOn. To specify a drop below the last row, specify row as [self numberOfRows] and operation as NSTableViewDropAbove.

Passing a value of –1 for row and NSTableViewDropOn as the operation causes the entire table view to be highlighted rather than a specific row. This is useful if the data displayed by the table view does not allow the user to drop items at a specific row location.

See Also

Dragging

- dragImageForRowsWithIndexes:tableColumns:event:offset:

Computes and returns an image to use for 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.