NSTextField enter to trigger action
Posted
by Chris
on Stack Overflow
See other posts from Stack Overflow
or by Chris
Published on 2010-04-14T05:44:56Z
Indexed on
2010/04/14
5:53 UTC
Read the original article
Hit count: 185
I've been looking all over for a simple example of how to have an action (or button) be triggered when the enter key is hit in the text field.
Should I subclass the text field? Would I need to set a delegate to call the action I need? Is there a way to catch the event in my main window controller class?
If you could even just point me to the right direction that would be great. Thanks.
© Stack Overflow or respective owner