Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/taktik/tktokenfield

An easily expandable drop-in replacement for NSTokenField that actually works
https://github.com/taktik/tktokenfield

Last synced: 8 days ago
JSON representation

An easily expandable drop-in replacement for NSTokenField that actually works

Awesome Lists containing this project

README

        

# TKTokenField
An easily expandable drop-in replacement for NSTokenField that actually works

NSTokenField is not easy to subclass. I spent days fighting against it, to end up with an unreliable solution. Until I came with the need to do completion in an asynchronous way... And I didn't know where to start.

I tried a radically different approach by recoding it from scratch. It works significally better and ended up being much faster to implement.

TODOs
* Support pasteboard delegates
* Support cocoapods
* Tests

Usage

Drag a Text Field from IB library. The class of the text field must be set to TKTokenField, the cell class to TKTokenFieldCell. The rich text option of the NSTextField *MUST* be clicked.