2011-08-02 43 views

回答

6

有兩種方法可讓您的窗口在角落有全屏按鈕。

[[NSApplication sharedApplication] setPresentationOptions:NSFullScreenWindowMask]; 

[window setCollectionBehavior: NSWindowCollectionBehaviorFullScreenPrimary]; 

我在博客中寫道詳細瞭解一下它here

2

請參閱this document。基本上,您可以在窗口上調用toggleFullScreen:消息將其置於全屏模式。