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

# 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.

```
var isRichText: Bool { get set }
```

## Discussion

Text fields that don’t allow rich text also don’t accept dragged files. By default, text views let the user apply multiple attributes to text, but don’t accept dragged files.

## See Also

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

The receiver’s text storage object.



---

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)