Instance Method

setDropIndex:dropOperation:

Allows the class to retarget the drop action.

Declaration

- (void)setDropIndex:(NSInteger)index dropOperation:(IKImageBrowserDropOperation)operation;

Parameters

index

The requested drop index.

operation

The requested drop operation. The possible values are described in IKImageBrowserDropOperation.

Discussion

For example, To specify a drop on the second item, one would specify index as 1, and operation as IKImageBrowserDropOn. To specify a drop after the last item, one would specify index as the number of items and operation as IKImageBrowserDropBefore.

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

.

See Also

Supporting Drag and Drop

- setDraggingDestinationDelegate:

Sets the dragging destination delegate of the receiver.

- draggingDestinationDelegate

Returns the dragging destination delegate of the receiver.

- indexAtLocationOfDroppedItem

Returns the index of the cell where the drop operation occurred.

- setAllowsDroppingOnItems:

Specifies whether the user can drop on items.

- allowsDroppingOnItems

Returns whether the user can drop on items.

- dropOperation

Returns the current drop operation.