How do I capture the enter key in a NSComboBox?

Posted by Ronaldo Nascimento on Stack Overflow See other posts from Stack Overflow or by Ronaldo Nascimento
Published on 2010-03-12T16:16:57Z Indexed on 2010/03/12 16:17 UTC
Read the original article Hit count: 265

Filed under:

I have an NSComboBox embedded in the toolbar. I would like to "capture" the enter key as an event to trigger an action. I tried NSControlTextDidChangeNotification but you cant get the key that was pressed. Any help is appreciated...

© Stack Overflow or respective owner

Related posts about cocoa