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

# updateDragTypeRegistration()

Updates the acceptable drag types of all text views associated with the receiver’s layout manager.

```
func updateDragTypeRegistration()
```

## Discussion

If the receiver is editable and is a rich text view, causes all text views associated with the receiver’s layout manager to register their acceptable drag types. If the text view isn’t editable or isn’t rich text, causes those text views to unregister their dragged types.

Subclasses can override this method to change the conditions for registering and unregistering drag types, whether as a group or individually based on the current state of the text view. They should invoke this method when that state changes to perform the necessary update.

## See Also

[`-  registerForDraggedTypes:`](/documentation/AppKit/NSView/registerForDraggedTypes(_:))

Registers the pasteboard types that the view will accept as the destination of an image-dragging session.

[`-  unregisterDraggedTypes`](/documentation/AppKit/NSView/unregisterDraggedTypes())

Unregisters the view as a possible destination in a dragging session.

[`importsGraphics`](/documentation/AppKit/NSTextView/importsGraphics)

A Boolean value that controls whether the text views sharing the receiver’s layout manager allow the user to import files by dragging.

[`editable`](/documentation/AppKit/NSTextView/isEditable)

A Boolean value that controls whether the text views sharing the receiver’s layout manager allow the user to edit text.

[`richText`](/documentation/AppKit/NSTextView/isRichText)

A Boolean value that controls whether the text views sharing the receiver’s layout manager allow the user to apply attributes to specific ranges of text.



---

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)