<!--
{
  "availability" : [
    "macOS: 10.3.0 - 10.14.0"
  ],
  "documentType" : "symbol",
  "framework" : "WebKit",
  "identifier" : "/documentation/WebKit/WebUIDelegate/webView(_:dragDestinationActionMaskFor:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "WebKit"
    ],
    "preciseIdentifier" : "c:objc(pl)WebUIDelegate(im)webView:dragDestinationActionMaskForDraggingInfo:"
  },
  "title" : "webView(_:dragDestinationActionMaskFor:)"
}
-->

# webView(_:dragDestinationActionMaskFor:)

Returns a mask indicating which drag operations are allowed by the sender.

```
optional func webView(_ webView: WebView!, dragDestinationActionMaskFor draggingInfo: (any NSDraggingInfo)!) -> Int
```

## Parameters

`webView`

The web view that sent the message.

`draggingInfo`

The information object for the dragging operation.

## Return Value

A mask that indicates which drag operations are allowed when content is dragged over the sending web view. (Note that the return value changed from an `unsigned int` to an `NSUInteger` in OS X v10.5.) See [`WebDragDestinationAction`](/documentation/WebKit/WebDragDestinationAction) for a list of return values.

## Discussion

This method can be invoked multiple times while content is dragged over the sending web view. When the content is dropped, the web view sends a notification ([`webView(_:willPerform:for:)`](/documentation/WebKit/WebUIDelegate/webView(_:willPerform:for:))) to the receiver.

If you do not implement this method, it returns [`any`](/documentation/WebKit/WebDragDestinationAction/any) by default.

---

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)