Fullscreen using NSApplication setPresentationOptions.

Joined
Apr 29, 2013
Messages
2
Reaction score
0
Points
1
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
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top