Whats the best way to go full screen?

Discussion in 'Mac Programming' started by MythicFrost, Jun 17, 2010.

  1. MythicFrost macrumors 68040

    MythicFrost

    Joined:
    Mar 11, 2009
    Location:
    Australia
    #1
    Hi,

    I'm teaching myself Objective C on OSX 10.6, I'm wondering, whats the best way to go full screen (no app bar, no menu bar, etc.)?
    (I'd also like to block Expose, Spaces, Cmd+Tab from exiting the application, like in a game)

    In the file "TestAppDelegate.m" I set IsWindowZoomed to true, but I've also googled and found other code which involves adding the Carbon framework.

    These are the lines for the carbon way:
    Code:
    	[window setFrame:[[NSScreen mainScreen] visibleFrame] display:YES animate:NO];
    	SetSystemUIMode(kUIModeAllHidden, kUIOptionAutoShowMenuBar);
    Even that though doesn't hide the application toolbar I have, and it doesn't cover the entire screen, it leaves out the part with the menu bar (but it's gone).

    Can anyone help?

    Kind Regards
     
  2. robbieduncan Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #2
    Did you look at the Documentation? In particular the "Fullscreen Mode" section?
     
  3. MythicFrost thread starter macrumors 68040

    MythicFrost

    Joined:
    Mar 11, 2009
    Location:
    Australia

Share This Page