For Lion development, I want to programmatically make an NSWindow
fullscreen, and back to normal, exactly as if the user clicked on the fullscreen button.
I tried setStyleMask:
(which I saw can be used for checking), but it only resulted in the title bar disappearing.
You need to call -toggleFullScreen:
on the window you want to change after you've configured everything for full screen.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With