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

Blakeasd

macrumors 6502a
Original poster
Dec 29, 2009
643
0
Hello,
I am trying to make a window go full screen. Here is my code:
Code:
[window setFrame:[[NSScreen mainScreen]visibleFrame]display:YES animate:YES];
	SetSystemUIMode(kUIModeAllHidden, kUIOptionAutoShowMenuBar);

This makes the window fit the screen but I can still move the window around. Does anyone know what I am doing wrong.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.