<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSTextView/didChangeTypingAttributesNotification",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:@NSTextViewDidChangeTypingAttributesNotification"
  },
  "title" : "didChangeTypingAttributesNotification"
}
-->

# didChangeTypingAttributesNotification

Posted when there is a change in the typing attributes within a text view.

```
class let didChangeTypingAttributesNotification: NSNotification.Name
```

## Discussion

This notification is posted, via the [`textViewDidChangeTypingAttributes(_:)`](/documentation/AppKit/NSTextViewDelegate/textViewDidChangeTypingAttributes(_:)) delegate method, whether or not text has changed as a result of the attribute change.

To observe this notification using Swift concurrency, use [`NSTextView.DidChangeTypingAttributesMessage`](/documentation/AppKit/NSTextView/DidChangeTypingAttributesMessage).

---

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)