Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to run mac application automatically in fullscreen

Hi I like to run an OSx View with an WebView init in fullscreen (so big as the current screen is not the Lion fullscreen mode), is there any code for that?

like image 836
David Gölzhäuser Avatar asked Nov 22 '25 07:11

David Gölzhäuser


1 Answers

Sorry this is a little late, but the easiest way to do it is:

[yourWindow toggleFullScreen:@""];

Just put this in your - (void)applicationDidFinishLaunching, and it will automatically go into fullcreen. Hope this helps!

like image 61
ccbreen Avatar answered Nov 24 '25 22:11

ccbreen