Is it possible to get an event when you click on a token in a NSTokenField?
Asked
Active
Viewed 1,113 times
1 Answers
4
Seeing as those tokens (NSTokenFieldCells) 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:).
Itai Ferber
- 28,308
- 5
- 77
- 83
+ (Class)cellClass, whereby I set MyNSTokenFieldCell's Target and Action though no event was sent. Any idea what else I could do to get an event when clicked? – Tom Nys Jan 10 '11 at 15:01