5

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?

4

1 回答 1

4

NSTokenField 对自定义非常封闭,所以我最终实现了自己的令牌字段。

我已将其设为开源。我已经根据我的要求对其进行了定制,您可以按照您想要的方式进一步扩展它。

下载源

我希望它有所帮助。

于 2013-10-17T09:09:01.263 回答