开发者

Clicking token in NSTokenField

开发者 https://www.devze.com 2023-02-02 12:09 出处:网络
Is it possible to get an event when you clic开发者_如何学Pythonk on a token in a NSTokenField?Seeing as those tokens (NSTokenFieldCells) inherit from the NSCell class, in theory, yes, you can have the

Is it possible to get an event when you clic开发者_如何学Pythonk on a token in a NSTokenField?


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:).

0

精彩评论

暂无评论...
验证码 换一张
取 消