01-07-2014, 06:16 AM #1
Fullscreen using NSApplication setPresentationOptions.
- Member Since
- Apr 29, 2013
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,
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
By hello1000 in forum OS X - Operating SystemReplies: 17Last Post: 10-22-2012, 03:05 PM
By pokeman89 in forum Switcher HangoutReplies: 9Last Post: 10-02-2009, 06:38 PM
By Davide in forum Apple DesktopsReplies: 1Last Post: 12-10-2008, 12:54 PM
By jdgti in forum OS X - Apps and GamesReplies: 2Last Post: 07-09-2007, 12:07 AM
By johninc in forum OS X - Development and DarwinReplies: 5Last Post: 05-06-2006, 01:37 PM