SSToken

SSToken is a replacement for NSTokenField.

SSToken is open and customisable to your needs. Where as the native NSTokenField is very hard for customisation.


Whats great?

SSToken will increase the content view height when new token is added like in a Apple Mail - Compose Mail.

Usage:

Instantiate SSToken just like the rest of NSView designated initializer initWithFrame: method.

Use setTokens: method to set the array of tokens. Implement delegate methods if in case its needed.

Features:

  • Customisable tokens.

  • Replace the token images to match your needs.

  • SSToken will grow like in Apple Mail - Compose Mail.

  • Able to remove the token by tapping on close button on SSToken.

  • Able to change the text color of the SSToken.

  • Highlighting the token with different color on mouse hover.

Future Implementation:

  • Able to edit the text just like NSTokenField.

  • Suggestion as we type in SSToken.

  • Selection of SSToken for custom actions like delete.

Download Source 

Comments

Popular posts from this blog

Clean code architecture

SSAutoMailScript - To scan email address and initiate new mail.