Instance Method

setDraggingSourceOperationMask:forLocal:

Configures the default value returned from draggingSourceOperationMaskForLocal:.

Declaration

- (void)setDraggingSourceOperationMask:(NSDragOperation)dragOperationMask forLocal:(BOOL)localDestination;

Parameters

dragOperationMask

The types of drag operations allowed.

localDestination

If YES, mask applies when the drag destination object is in the same application as the receiver; if NO, mask applies when the destination object is outside the receiver’s application.

Discussion

By default, this method returns NSDragOperationEvery when localDestination is YES and NSDragOperationNone when localDestination is NO. NSCollectionView will save the values you set for each localDestination value.

You typically will invoke this method, and not override it.

See Also

Legacy Collection View Support

itemPrototype

The receiver’s collection view item prototype.

Deprecated
- newItemForRepresentedObject:

Returns the collection view item that is used for the specified object.

Deprecated
selectionIndexes

The indexes of the currently selected items.

maxNumberOfRows

The maximum number of rows that the collection view displays.

Deprecated
maxNumberOfColumns

The maximum number of columns that the collection view displays.

Deprecated
minItemSize

The minimum size (in points) of items in the collection view grid.

Deprecated
maxItemSize

The maximum size (in points) of items in the collection view grid.

Deprecated
- itemAtIndex:

Returns the collection view item for the represented object at the specified index.

- frameForItemAtIndex:

Returns the frame of the collection view item at the specified index.

- frameForItemAtIndex:withNumberOfItems:

Returns the frame of an item based on the number of items in the collection view.

- draggingImageForItemsAtIndexes:withEvent:offset:

This method computes and returns an image to use for dragging.