I want to make NSButton
as a 'Default' button so that when i hit "Enter" key that button gets clicked(i.e its Click Action gets called), i am able to do it by setting its key Equivalent to '\r' or by hitting 'Enter' key in Xib.
But in case if the same window does not have title bar, then default button does not work.
I have tried by making myWindow borderless programitcally
[mywindow setStyleMask:NSBorderlessWindowMask];
still it does not help.
So my question is how to make NSButton as 'Default' Button without title bar to its Window.
Thanks.