---
title: "setDraggingSourceOperationMask(_:forLocal:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nspathcontrol/setdraggingsourceoperationmask(_:forlocal:)"
---

# setDraggingSourceOperationMask(_:forLocal:)

Configures the drag operation mask.

## Declaration

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

## Parameters

- `mask`: The types of drag operations allowed.
- `isLocal`: If doc://com.apple.documentation/documentation/Swift/true, mask applies when the drag destination object is in the same application as the receiver; if doc://com.apple.documentation/documentation/Swift/false, mask applies when the destination object is outside the receiver’s application.

## Discussion

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.
