Marker Click in NSTokenField

Is it possible to get an event when you click on a token in an NSTokenField?

+7
source share
1 answer

Seeing that these tokens ( NSTokenFieldCell s) are inherited from the NSCell class, theoretically, yes, you can send them an event by indicating them the action and purpose ( -setAction: and -setTarget: respectively, and if you want to give a marker menu when clicked, use -setMenu: .

+4
source

All Articles