I'm looking for either a setting option of NSWindow
in XIB editor or via programmatically take I can disable the fullscreen mode feature in OS X when the user clicks the zoom button (green traffic light), as it does not work well with my UI design. (Instead, use it for normal window zooming.)
Anyone can give me some hints where to look for?
While using any application in full-screen mode, move your pointer to the upper-left corner of your screen. This will activate macOS' commands for controlling open windows. Click on the green button to exit full screen. If you like to use keyboard shortcuts, you can press Command + Control + F.
To turn off Zoom, check the Off radio button in the Zoom section of the Universal Access system preferences or by pressing Option + Command + 8. Note: The scroll-wheel modifier specified in the Zoom options will continue to function even if Zoom is turned off.
To zoom out, press these three keys together: Option, Command, and Minus sign (-).
For SwiftUI:
.onReceive(
NotificationCenter.default.publisher(
for: NSApplication.willUpdateNotification), perform: { _ in
for window in NSApplication.shared.windows {
window.collectionBehavior = .fullScreenAuxiliary
}
})
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