iDevGames Forums
Fullscreen question - Printable Version

+- iDevGames Forums (http://www.idevgames.com/forums)
+-- Forum: Development Zone (/forum-3.html)
+--- Forum: Game Design (/forum-5.html)
+--- Thread: Fullscreen question (/thread-2706.html)



Fullscreen question - FlamingHairball - Mar 21, 2008 11:17 AM

I have the following code.
if ([sender state]==NSOnState){
int windowLevel = CGShieldingWindowLevel();
[fullScreenOut enterFullScreenMode:[NSScreen mainScreen]withOptions:nil];
}
else{
[fullScreenOut exitFullScreenModeWithOptions:nil];
}

My objective(pun intended) is to make it so when my main window goes into fullscreen, my floating window stays on top. I got it to do this using

[HUD setLevel:windowLevel];
[HUD makeKeyAndOrderFront:nil];

but when I click on the main window, my floating window disappears. Any help would be appreciated.

NOTE: fullScreenOut is my main window's content view. HUD is an outlet to my floating window.


Fullscreen question - FlamingHairball - Mar 22, 2008 02:35 PM

Tried setting it to NSStatusLevel, but still no go. Any Suggestions? At all?


Fullscreen question - OneSadCookie - Mar 22, 2008 11:33 PM

CGShieldingWindowLevel() + 1 is an obvious thing to try. I don't know if this is possible, however.


Fullscreen question - FlamingHairball - Mar 23, 2008 01:12 PM

Ah, thought I tried that, but Voila! it works! Youreka! Thank you!