I'm using Swift for an OS X app and I want it to enter Full Screen on startup. I've entered the following code in my appdelegate.swift, but it's giving me an error.
func window(window: NSWindow, willUseFullScreenPresentationOptions proposedOptions: NSApplicationPresentationOptions) -> NSApplicationPresentationOptions {
return NSApplicationPresentationOptions.AutoHideToolbar |
NSApplicationPresentationOptions.AutoHideMenuBar |
NSApplicationPresentationOptions.FullScreen |
proposedOptions
}
the error is: "Binary operator '|' cannot be applied to two 'NSApplicationPresentationOptions' operands. I've tried to find a tutorial to try and do this, but I can't seem to find anything that explains how to enter fullscreen on startup. I'm still pretty knew to Swift and OS X programming so please forgive me if I've made a huge newbie error.
Any help would be greatly appreciated.
Thank you so much.