Instance Method

controlTextDidBeginEditing:

Sent when a control with editable text begins an editing session.

Declaration

- (void)controlTextDidBeginEditing:(NSNotification *)obj;

Parameters

aNotification

The notification object. The name of the notification is always NSControlTextDidBeginEditingNotification.

Discussion

This method is invoked when the user begins editing text in a control such as a text field or a form field. The control posts a NSControlTextDidBeginEditingNotification 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.

See controlTextDidEndEditing: for an explanation of why you may not always get one invocation of controlTextDidBeginEditing: for each invocation of controlTextDidEndEditing:.

See Also

Control Editing Notifications

- controlTextDidChange:

Sent when the text in the receiving control changes.

Deprecated
- controlTextDidEndEditing:

Sent when a control with editable text ends an editing session.

Deprecated