Create NSTextView with Facebook-like Tags/Mentions


I have been working on an OS X app related to time planning and I needed to provide a text input where users can tag or mention places. My biggest challenge was to actually render those mentions and tags with other regular text.

In this post, I will explain how I built my version of NSTextView (second text box in the screenshot above). However, the full implementation offers NSTextField and NSTextFieldCell implementations as well which can be used for other cases, such as inside NSTableView:


Read More »