willChangeNotifyingTextViewNotification
Posted when a new text view is established as the text view that sends notifications.
Declaration
class let willChangeNotifyingTextViewNotification: NSNotification.NameDiscussion
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:
Key | Value |
|---|---|
| The old |
| The new |
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.