Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

MythicFrost

macrumors 68040
Original poster
Mar 11, 2009
3,944
40
Australia
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
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.