Instance Method

textShouldBeginEditing:

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

Declaration

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

Discussion

If the delegate returns YES, the text object proceeds to make changes. If the delegate returns NO, the text object abandons the editing operation. This method is also invoked when the user drags and drops a file onto the text object.

See Also

Editing text

- textDidBeginEditing:

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

- textShouldEndEditing:

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

- textDidEndEditing:

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