Instance Method

replaceCharactersInRange:withString:

Replaces the text in the specified range with the new string.

Declaration

- (void)replaceCharactersInRange:(NSRange)range withString:(NSString *)string;

Parameters

range

The specified range of the text to replace.

string

The replacement string.

Discussion

See NSTextFinder for a complete description.

See Also

Replacing Text

- shouldReplaceCharactersInRanges:withStrings:

Returns whether the specified strings should be replaced.

- didReplaceCharacters

Specifies whether text characters were replaced.