---
title: willChangeNotifyingTextViewNotification
framework: appkit
role: symbol
role_heading: Type Property
path: appkit/nstextview/willchangenotifyingtextviewnotification
---

# willChangeNotifyingTextViewNotification

Posted when a new text view is established as the text view that sends notifications.

## Declaration

```swift
class let willChangeNotifyingTextViewNotification: NSNotification.Name
```

## Discussion

Discussion This notification allows observers to reregister themselves for the new text view. Methods such as removeTextContainer(at:), textContainerChangedTextView(_:), and insertTextContainer(_:at:) cause this notification to be posted. The notification object is the old notifying text view, or nil. The userInfo dictionary contains the following information:  |   |   |  There’s no delegate method associated with this notification. The text-handling system ensures that when a new text view replaces an old one as the notifying text view, the existing delegate becomes the delegate of the new text view, and the delegate is registered to receive text view notifications from the new notifying text view. All other observers are responsible for registering themselves on receiving this notification.

## See Also

### Related Documentation

- [removeObserver(_:)](foundation/notificationcenter/removeobserver(_:)-2yciv.md)
- [addObserver(_:selector:name:object:)](foundation/notificationcenter/addobserver(_:selector:name:object:).md)

### Notifications

- [didChangeSelectionNotification](appkit/nstextview/didchangeselectionnotification.md)
- [didChangeTypingAttributesNotification](appkit/nstextview/didchangetypingattributesnotification.md)
- [didSwitchToNSLayoutManagerNotification](appkit/nstextview/didswitchtonslayoutmanagernotification.md)
- [willSwitchToNSLayoutManagerNotification](appkit/nstextview/willswitchtonslayoutmanagernotification.md)
