cocoa - NSView in NSMenu -- how to make "key" for accepting keyboard commands [specifically, return] -


I have a text field and a button alive button inside the menu field submits a string in the text field in a field, And that works fine, however, I have also set the key of the button for "return". The main command is not being raised, probably because the menu is not "key" window.

I know how to make a window key window (MacKay and OrderFront) - What is the equivalent of a view to living in a menu?

The best way to do this is to ignore the button and tie the NSTextField's underlying return key key. To work:

Good work starts.


Comments

Popular posts from this blog

c# - How to capture HTTP packet with SharpPcap -

php - Multiple Select with Explode: only returns the word "Array" -

php - jQuery AJAX Post not working -