Highlight Search in NSTextView

So this is what I want:

  • When a match is highlighted in Mac OS X (using the Find action), by default, a separate golden rounded border (animated) is created around the animation, and then it leaves.

  • Is there any way to programmatically run the same function and highlight a specific range in NSTextView?

I'm sure there should be something like this ready-made, but I definitely can't find it ...

+5
source share
1 answer

I thought it was:

- (void)showFindIndicatorForRange:(NSRange)charRange

For NSTextView (docs here ).

+9
source

All Articles