Is it possible to get an event when you click on a token in a NSTokenField?
相关问题
- NSOutlineView drag line stuck + blue border
- iphone sdk see size of local file (one created
- How can you detect the connection and disconnectio
- QuickLook Plugin Failing with sandboxing error
- NSTextField font styling resets when selected
相关文章
- Converting (u)int64_t to NSNumbers
- “getter” keyword in @property declaration in Objec
- NSMenuItem KeyEquivalent “ ”(space) bug
- Detect if cursor is hidden on Mac OS X
- NSNumberFormatter doesn't allow typing decimal
- Is subclassing NSNotification the right route if I
- Creating an NSMutableArray with a literal via muta
- adding click action to NSTextField
Seeing as those tokens (
NSTokenFieldCell
s) inherit from theNSCell
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:
).