Hi All,
I'm making a small video app for an artist for gallery use. All is going well but I have a small problem with the fullscreen mode in swift (Ive tested when not in fullscreen mode and all functions well as expected.
I use this code to enter fullscreen at startup:
func fullscreen(){
let presOptions: NSApplicationPresentationOptions = ([.autoHideMenuBar
,.autoHideDock])
let optionsDictionary = [NSFullScreenModeApplicationPresentationOptions :
NSNumber(value: presOptions.rawValue)]
self.view.enterFullScreenMode(NSScreen.main()!, withOptions:optionsDictionary)
self.view.wantsLayer = true
}This works well but then there is a preferences window which the user can open and which appears in front of the fullscreen video (this also works but only if I set the NSApplicationPresentationOptions as above - not in default fullscreen). The problem comes when the user closes the preferences window as a small gray window appears above the fullscreen video. See photo:
Also, when the app is in fullscreen and you go into mission control mode on mac you can see multiple windows such as;
This is a more of an annoying problem as it requires more from the user when setting preferences than I would hope - the app will be used by gallerists and the collectors who by the work of the artist so it needs to be as user friendly as possible.
Thanks in advance for your help with this.
Sam