What about a subclass NSTokenFieldand / or NSTokenFieldCell?
You can use it tokenizingCharacterSetin conjunction with NSString componentsSeparatedByCharactersInSet:to get a list of tokens, and then draw them as you would like.
You will also be able to fully respond to mouse events, but you want to (using the NSCell methods for Mouse Tracking )
user1040049
source
share