View Single Post
anandcta123

 
Member Since: Apr 29, 2013
Posts: 2
anandcta123 is on a distinguished road

anandcta123 is offline
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
QUOTE Thanks