Is it possible to get an event when you click on a token in a NSTokenField?
Seeing as those tokens (NSTokenFieldCell
s) inherit from the NSCell
class, in theory, yes, you can have them send an event by giving them an action and a target (-setAction:
and -setTarget:
respectively, and if you want to give the tokens menus when pressed, use -setMenu:
).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With