I insert a NSTokenField
into a NSView
, when input has enough tokens, it turn into multiline mode, but there there is a problem with it. The top of first line gets cut off 2px and the line spacing between two line becomes too small.
Is there a way to avoid this?
NSTokenField is very much closed for customisation so I ended up by implementing my own tokenfield.
I have made it an open source. I have customised it based on my requirements, you can extend it further like the way you want it.
Download the source
I hope it helps.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With