Instance Method


Retargets the proposed drop operation.


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



The target row index.


The drop operation. Supported values are specified by NSTableViewDropOperation.


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


- 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.


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


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