Hello,
does anyone know if there's a way to configure the app to hide its window when the user clicks on the red close button in the title bar, instead of quitting? If so, how?
Hello,
does anyone know if there's a way to configure the app to hide its window when the user clicks on the red close button in the title bar, instead of quitting? If so, how?
Code Block Swift import Cocoa class VCWindowController : NSWindowController, NSWindowDelegate { required init?(coder: NSCoder) { super.init(coder: coder) } func windowShouldClose(sender: AnyObject) -> Bool { NSApp.hide(nil) return false } }