---
title: didChangeText()
framework: appkit
role: symbol
role_heading: Instance Method
path: appkit/nstextview/didchangetext()
---

# didChangeText()

Sends out necessary notifications when a text change completes.

## Declaration

```swift
func didChangeText()
```

## Discussion

Discussion Invoked automatically at the end of a series of changes, this method posts an didChangeNotification to the default notification center, which also results in the delegate receiving an NSText delegate textDidChange(_:) message. Subclasses implementing methods that change their text should invoke this method at the end of those methods. See Subclassing NSTextView for more information.

## See Also

### Customizing subclass behaviors

- [updateFontPanel()](appkit/nstextview/updatefontpanel().md)
- [updateRuler()](appkit/nstextview/updateruler().md)
- [acceptableDragTypes](appkit/nstextview/acceptabledragtypes.md)
- [updateDragTypeRegistration()](appkit/nstextview/updatedragtyperegistration().md)
- [selectionRange(forProposedRange:granularity:)](appkit/nstextview/selectionrange(forproposedrange:granularity:).md)
- [rangeForUserCharacterAttributeChange](appkit/nstextview/rangeforusercharacterattributechange.md)
- [rangesForUserCharacterAttributeChange](appkit/nstextview/rangesforusercharacterattributechange.md)
- [rangeForUserParagraphAttributeChange](appkit/nstextview/rangeforuserparagraphattributechange.md)
- [rangesForUserParagraphAttributeChange](appkit/nstextview/rangesforuserparagraphattributechange.md)
- [rangeForUserTextChange](appkit/nstextview/rangeforusertextchange.md)
- [rangesForUserTextChange](appkit/nstextview/rangesforusertextchange.md)
- [shouldChangeText(in:replacementString:)](appkit/nstextview/shouldchangetext(in:replacementstring:).md)
- [shouldChangeText(inRanges:replacementStrings:)](appkit/nstextview/shouldchangetext(inranges:replacementstrings:).md)
- [smartInsertDeleteEnabled](appkit/nstextview/smartinsertdeleteenabled.md)
- [smartDeleteRange(forProposedRange:)](appkit/nstextview/smartdeleterange(forproposedrange:).md)
