Something should always be the first responder in the window, if something could be. As a rule, only the first controls, such as text fields, can become the first responder, but when the user has access to Full Keyboard Access, it is normal to select the default button.
If you do not want this particular button to start, set the initialFirstResponder window to another control.
I would suggest using -[NSWindow makeFirstResponder:nil] . The window will start with nothing selected, but the button will be selected as soon as the user types a tab. This is unusual for Mac applications because there is no way to return the window to the “nothing is selected” state as a user.
source share