0

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.

Alfonso Tesauro
  • 1,730
  • 13
  • 21

1 Answers1

2

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

vignesh
  • 994
  • 10
  • 12