Protocol

NSTextDelegate

A set of optional methods implemented by the delegate of an NSText object to edit text and change text formats.

Declaration

@protocol NSTextDelegate

Topics

Changing text formatting

- textDidChange:

Informs the delegate that the text object has changed its characters or formatting attributes.

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).

- 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).

Relationships

Inherits From

Inherited By

See Also

Data Management

NSTextStorage

The fundamental storage mechanism of TextKit.

NSTextStorageDelegate

A set of optional methods implemented by delegates of NSTextStorage objects to handle text-edit processing.