I'm wondering how create such baloons in NSTextView, as in send mail window. I found one way of doing this, but I want user delete all baloon in one click (or transfer it to another location) ?
Seems that it NSTextAttachm开发者_开发百科ent, but I not sure really.
Thank you!
For a simple single-line field like in the screenshot, that would be an NSTokenField.
If you want to do it in a big NSTextView, like Xcode autocomplete, then you'll have to create it from scratch. (Probably with NSTextAttachment + NSAttributedString)
精彩评论