Instance Method

insertText:

Insert a character into the displayed text.

Required.

Declaration

- (void)insertText:(NSString *)text;

Parameters

text

A string object representing the character typed on the system keyboard.

Discussion

Add the character text to your class’s backing store at the index corresponding to the cursor and redisplay the text.

See Also

Inserting and Deleting Text

- deleteBackward

Delete a character from the displayed text.

Required.

hasText

A Boolean value that indicates whether the text-entry objects has any text.

Required.