PDA

View Full Version : Making a Window Full Screen




Blakeasd
Nov 14, 2010, 10:28 AM
Hello,
I am trying to make a window go full screen. Here is my 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.



HiRez
Nov 14, 2010, 04:00 PM
I can't tell if you a) need to smoothly animate into a full screen window or b) want the window controls to stay visible. Try this technique:

http://cocoawithlove.com/2009/08/animating-window-to-fullscreen-on-mac.html