---
title: "textDidChange(_:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nstextfield/textdidchange(_:)"
---

# textDidChange(_:)

Posts a notification when the text changes, and forwards the message to the text field’s cell if it responds.

## Declaration

```swift
func textDidChange(_ notification: Notification)
```

## Parameters

- `notification`: The doc://com.apple.appkit/documentation/AppKit/NSControl/textDidChangeNotification notification to post to the default notification center.

## Discussion

Discussion This method causes the text field’s delegate to receive a controlTextDidChange: message. See the NSControl class specification for more information about the text delegate method.

## See Also

### Implementing Delegate Methods

- [textShouldBeginEditing(_:)](appkit/nstextfield/textshouldbeginediting(_:).md)
- [textDidBeginEditing(_:)](appkit/nstextfield/textdidbeginediting(_:).md)
- [textShouldEndEditing(_:)](appkit/nstextfield/textshouldendediting(_:).md)
- [textDidEndEditing(_:)](appkit/nstextfield/textdidendediting(_:).md)
