How to make a Mac OSX Cocoa application fullscreen?

后端 未结 4 1720
失恋的感觉
失恋的感觉 2021-02-01 19:11

I have been trying to make my Mac application enter fullscreen now for a while but can\'t get it to work. According to the Apple developer center, I should use enterFullScreenMo

4条回答
  •  说谎
    说谎 (楼主)
    2021-02-01 19:37

    Modern day Mac Os X developers (who use storyboard) need only to click on their main.storyboard, select the NSWindow (not the NSWindowController), Use the right panel to find the attributes panel (the one that to the left of the ruler, it looks like a drag-bar thing) look for "Full Screen" and select "Primary Window" rather than its default value of "Unsupported". You can also set up Auxiliary windows if that's what you want.

    Don't fight the change, use storyboard. One of us... one of us...

提交回复
热议问题