我想使NSButton
作爲'默認'按鈕,以便當我點擊「Enter」鍵點擊按鈕(即它的Click Action被調用)時,我是可以通過設置其鍵等於'\ r'或在Xib中按'Enter'鍵來完成。如何使NSButton作爲默認沒有標題欄到其窗口
但如果相同的窗口沒有標題欄,則默認按鈕不起作用。
我已讓mywindow的無邊距programitcally
[mywindow setStyleMask:NSBorderlessWindowMask];
仍然沒有幫助嘗試。
所以我的問題是如何使NSButton作爲'默認'按鈕沒有標題欄到其窗口。
謝謝。