<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSTextView/acceptableDragTypes",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSTextView(py)acceptableDragTypes"
  },
  "title" : "acceptableDragTypes"
}
-->

# acceptableDragTypes

The data types that the receiver accepts as the destination view of a dragging operation.

```
var acceptableDragTypes: [NSPasteboard.PasteboardType] { get }
```

## Discussion

These types are automatically registered as necessary by the text view. Subclasses should override this value as necessary to add their own types to those returned by `NSTextView`‘s implementation. They must then also override the appropriate methods of the [`NSDraggingDestination`](/documentation/AppKit/NSDraggingDestination) protocol to support import of those types. See that protocol’s specification for more information.

---

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)