I am trying to customize an NSTokenField and after trying several hours I realized that NSTokenField is not customizable enough (at least using public methods).
Do you know an alternative to NSTokenField which can be easily customized?
Thanks!
I am trying to customize an NSTokenField and after trying several hours I realized that NSTokenField is not customizable enough (at least using public methods).
Do you know an alternative to NSTokenField which can be easily customized?
Thanks!
How about subclassing NSTokenField and/or NSTokenFieldCell?
You could use tokenizingCharacterSet in conjonction with NSString's componentsSeparatedByCharactersInSet: to get a list of tokens and then draw them however you'd like.
You'd also be able to completely respond to mouse events however you'd like (via NSCell methods for Tracking the Mouse)