iDevGames Forums
Mac OSX fullscreen application problem - Printable Version

+- iDevGames Forums (http://www.idevgames.com/forums)
+-- Forum: Development Zone (/forum-3.html)
+--- Forum: Graphics & Audio Programming (/forum-9.html)
+--- Thread: Mac OSX fullscreen application problem (/thread-435.html)



Mac OSX fullscreen application problem - e40pud - Jan 14, 2010 12:14 PM

My application uses SDL library. For enter to fullscreen mode I use SDL_SetVideoMode and appropriate flag - SDL_FULLSCREEN.

Problem: When application is in fullscreen mode, I can't call "force quit" dialog and switching between other applications. After Cmd+Option+ESQ clicking my application is quit instead of "force quit" dialog is appear. And on Cmd+Tab clicking nothing is happens...

Can anybody help me?


Mac OSX fullscreen application problem - OneSadCookie - Jan 14, 2010 02:23 PM

That is the normal behavior for the APIs that SDL is using.

10.5 added a new API (-[NSView enterFullScreenMode:withOptions:] which has slightly different behavior, I think, but SDL is not using it.


Mac OSX fullscreen application problem - e40pud - Jan 15, 2010 04:46 AM

OneSadCookie Wrote:That is the normal behavior for the APIs that SDL is using.

10.5 added a new API (-[NSView enterFullScreenMode:withOptions:] which has slightly different behavior, I think, but SDL is not using it.

Thank you, OneSadCoocie.

Maybe you know any possibilities to achieve this behavior in application based on SDL library?


Mac OSX fullscreen application problem - OneSadCookie - Jan 15, 2010 09:27 AM

For "Force Quit" to not just kill your app (not sure why you care), patch SDL (probably hard or impossible) or ditch SDL.

For "Command-Tab", you could handle it yourself and hide your own application, which is not "perfect" but probably good enough. If you insist on seeing the switcher over your app, again, patch SDL or ditch SDL.


Mac OSX fullscreen application problem - e40pud - Jan 15, 2010 09:43 AM

OneSadCookie Wrote:For "Force Quit" to not just kill your app (not sure why you care) ...

About this care our customer Smile
Thank you for answering


Mac OSX fullscreen application problem - Mark Levin - Jan 22, 2010 09:51 AM

You can use SetSystemUIMode() to disable force quit and cmd-tab entirely without having to mess with SDL itself, but you'd better be damn sure your app is bulletproof because it will leave you with only a hard reboot to escape your program.


Mac OSX fullscreen application problem - e40pud - Mar 12, 2010 05:14 AM

OneSadCookie Wrote:For "Force Quit" to not just kill your app (not sure why you care), patch SDL (probably hard or impossible) or ditch SDL.

For "Command-Tab", you could handle it yourself and hide your own application, which is not "perfect" but probably good enough. If you insist on seeing the switcher over your app, again, patch SDL or ditch SDL.

How can I hide my application?


Mac OSX fullscreen application problem - OneSadCookie - Mar 12, 2010 05:41 AM

tear down your full-screen window and call [NSApp hide], probably.