Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Multiline NSTokenField display error

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?

like image 512
Ron Avatar asked Oct 05 '22 23:10

Ron


1 Answers

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.

like image 169
San Avatar answered Oct 10 '22 04:10

San