Question

NSTokenField works not very well

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?

Was it helpful?

Solution

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top