Draw a border around a part of NSAttributedString
问题 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: http://d.pr/i/w8wP [UPDATE] Due to custom interface requirements I can't use NSTextViews's setUsesFindBar: and setUsesFindPanel: . The interface has a custom NSSearchField, which