Mac Forums

Mac Forums (http://www.mac-forums.com/forums/)
-   OS X - Development and Darwin (http://www.mac-forums.com/forums/os-x-development-darwin/)
-   -   Fullscreen using NSApplication setPresentationOptions. (http://www.mac-forums.com/forums/os-x-development-darwin/307486-fullscreen-using-nsapplication-setpresentationoptions.html)

anandcta123 01-07-2014 07:16 AM

Fullscreen using NSApplication setPresentationOptions.
 
Hi,

I am using NSApplication setPresentationOptions with input NSApplicationPresentationHideDock and NSApplicationPresentationHideMenuBar to make fullscreen. Then NSApplicationPresentationDefault to restore to normal window. It works fine. But when I do frequently toggling between normal and fullscreen mode. The application will crash with EXC_BAD_ACCESS at either setPresentationOptions or NSApplicationMain. I am not getting fixing this strange issue. Please suggest me where I am doing wrong.

Note: My window is Java JFrame window. I am calling these Cocoa APIs from Java through JNI.

Thanks and Regards,
Anand


All times are GMT -4. The time now is 09:03 AM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.