Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
单击 NSTokenField 中的令牌时是否可以获得事件?
看到这些标记(NSTokenFieldCells)从NSCell类继承,理论上,是的,你可以通过给它们一个动作和一个目标来让它们发送一个事件(-setAction:并且-setTarget:分别,如果你想在按下时给标记菜单,使用-setMenu:) .
NSTokenFieldCell
NSCell
-setAction:
-setTarget:
-setMenu: