Fullscreen using NSApplication setPresentationOptions.
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,
|All times are GMT -4. The time now is 12:12 PM.|
Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.