NSTextView has a
-(void)setMarkedTextAttributes:
method.
But can I mark text NSRanges programmatically ? can I mark text the same way as I can select NSRanges ?
Thanks for any help.
NSTextView has a
-(void)setMarkedTextAttributes:
method.
But can I mark text NSRanges programmatically ? can I mark text the same way as I can select NSRanges ?
Thanks for any help.
Yes, You can mark the text with specific range using the API
- (void)setMarkedText:(id)aString
selectedRange:(NSRange)selRange
For more reference you check this apple doc : NSTextInput Protocol Reference