<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSTableView/setDraggingSourceOperationMask(_:forLocal:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSTableView(im)setDraggingSourceOperationMask:forLocal:"
  },
  "title" : "setDraggingSourceOperationMask(_:forLocal:)"
}
-->

# setDraggingSourceOperationMask(_:forLocal:)

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

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

## Parameters

`mask`

The drag operation mask. See [`NSDragOperation`](/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.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)