textDidBeginEditing(_:)
Invoked when there’s a change in the text after the receiver gains first responder status.
Declaration
func textDidBeginEditing(_ notification: Notification)Parameters
- notification:
The Textdidbegineditingnotification notification.
Discussion
This method’s default behavior is to post an textDidBeginEditingNotification along with the receiving object to the default notification center. The posted notification’s user info contains the contents of notification’s user info dictionary, plus an additional key-value pair. The additional key is “NSFieldEditor”; the value for this key is the text object that began editing.