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

# setDraggingSourceOperationMask(_:forLocal:)

Sets the default operation mask returned by draggingSourceOperationMaskForLocal: to mask.

## Declaration

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

## Parameters

- `mask`: The drag operation mask. See doc://com.apple.appkit/documentation/AppKit/NSDragOperation for the supported values.
- `isLocal`: doc://com.apple.documentation/documentation/Swift/true if the destination is the same application, otherwise doc://com.apple.documentation/documentation/Swift/false. In either case the specified mask value is archived and used.

## See Also

### Dragging

- [dragImageForRows(with:tableColumns:event:offset:)](appkit/nstableview/dragimageforrows(with:tablecolumns:event:offset:).md)
- [canDragRows(with:at:)](appkit/nstableview/candragrows(with:at:).md)
- [verticalMotionCanBeginDrag](appkit/nstableview/verticalmotioncanbegindrag.md)
- [draggingDestinationFeedbackStyle](appkit/nstableview/draggingdestinationfeedbackstyle-swift.property.md)
- [setDropRow(_:dropOperation:)](appkit/nstableview/setdroprow(_:dropoperation:).md)
