Instance Method

textShouldEndEditing:

Invoked from a text object’s implementation of resignFirstResponder, this method requests permission for aTextObject to end editing.

Declaration

- (BOOL)textShouldEndEditing:(NSText *)textObject;

Discussion

If the delegate returns YES, the text object proceeds to finish editing and resign first responder status. If the delegate returns NO, the text object selects all of its text and remains the first responder.

See Also

Editing text

- textShouldBeginEditing:

Invoked when a text object begins to change its text, this method requests permission for aTextObject to begin editing.

- textDidBeginEditing:

Informs the delegate that the text object has begun editing (that the user has begun changing it).

- textDidEndEditing:

Informs the delegate that the text object has finished editing (that it has resigned first responder status).