In a OS X app, if I have a form with a couple of buttons, how do I nominate a default button for the form? By default button I mean the button that acts when I hit Enter.
I've been trying to learn Swift, and so I've been experimenting building little OS X apps using Xcode 6.
All my programming experience is in Windows desktop applications, so I might be looking at this all wrong, and maybe using the wrong terminology here.
Set they button's key equivalent to \r. This is most easily done in Interface Builder by selecting "Key Equivalent" and pressing Enter.

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With