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

# setDraggingSourceOperationMask(_:forLocal:)

Specifies the drag-operation mask for dragging operations with local or external destinations.

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

## Parameters

`mask`

Dragging operation mask to use for either local or external drag operations, as specified by localDestination.

`isLocal`

Indicates the location of the dragging operation’s destination object:

    <doc://com.apple.documentation/documentation/Swift/true>     for this application;     <doc://com.apple.documentation/documentation/Swift/false>     for another application.

## Discussion

> Important:
> Do not override this method.

---

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)