Replaces the characters in the given range with RTF text interpreted from the given RTF data.
- macOS 10.0+
The range of characters to be replaced.
The RTF data from which to derive the replacement string.
This method applies only to rich text objects.
This method does not include undo support by default. Clients must invoke
should to include this method in an undoable action.
This method is designed for transferring text from out-of-process sources such as the pasteboard. In most cases, programmatic modification of the text is best done by operating on the text storage directly, using the general methods of