I'm developing a MacOs application and have to implement my own search functional due to custom interface.
So the question is - how can a draw a border around a part of NSAttributedString in NSTextView to display search result (just how it's done in TextEdit app). Please check the desired look on the attached image:
[UPDATE]
Due to custom interface requirements I can't use NSTextViews's setUsesFindBar:
and setUsesFindPanel:
. The interface has a custom NSSearchField, which should perform search in a textView.
I've got familiar with performTextFinderAction:
, but how do I trigger it on a textView with the NSSearchField value?