---
title: "controlTextDidChange:"
framework: objectivec
role: symbol
role_heading: Instance Method
path: "objectivec/nsobject-swift.class/controltextdidchange:"
---

# controlTextDidChange:

Sent when the text in the receiving control changes.

## Declaration

```occ
- (void) controlTextDidChange:(NSNotification *) obj;
```

## Parameters

- `obj`: The notification object. The name of the notification is always doc://com.apple.documentation/documentation/AppKit/NSControl/textDidChangeNotification.

## Discussion

Discussion This method is invoked when text in a control such as a text field or form changes. The control posts a textDidChangeNotification notification, and if the control’s delegate implements this method, it is automatically registered to receive the notification. Use the key @"NSFieldEditor" to obtain the field editor from the userInfo dictionary of the notification object.
