Allow only specific tokens in NSTokenField

212 views Asked by At

I'm currently implementing a NSTokenField and at the moment any text that the user enters will be transformed into a token.
I only want to allow a specific set of tokens, any other text shouldn't be transformed to a token.

Is there a way to check if an entered text is a valid token any only then transform it to a token leaving other text unchanged?

Thanks!

0

There are 0 answers