Contents

setDraggingSourceOperationMask(_:forLocal:)

Configures the drag operation mask.

Declaration

func setDraggingSourceOperationMask(_ mask: NSDragOperation, forLocal isLocal: Bool)

Parameters

  • mask:

    The types of drag operations allowed.

  • isLocal:

    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 return value of draggingSourceOperationMaskForLocal:. By default, this method returns every when isLocal is true and NSDragOperationNone when isLocal is false.