A default button pulses, and its action message is invoked when the user presses Return.
To mark a button as the default, set its key equivalent to Return with setKeyEquivalent:
[myButton setKeyEquivalent:@"\r"];
ref: https://developer.apple.com/library/archive/documentation/Cocoa/Conceptual/Button/Articles/MakingaButtontheDefaultButton.html
A default button pulses, and its action message is invoked when the user presses Return.
To mark a button as the default, set its key equivalent to Return with
setKeyEquivalent:ref: https://developer.apple.com/library/archive/documentation/Cocoa/Conceptual/Button/Articles/MakingaButtontheDefaultButton.html