Contents

setDraggingSourceOperationMask(_:forLocal:)

Configures the drag operation mask.

Declaration

func setDraggingSourceOperationMask(_ dragOperationMask: NSDragOperation, forLocal localDestination: Bool)

Parameters

  • dragOperationMask:

    The types of drag operations allowed.

  • localDestination:

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

Discussion

This method configures the default value returned from draggingSourceOperationMaskForLocal:. By default, this method returns every when localDestination is true and NSDragOperationNone when localDestination is false. 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