Steve2/A2Mac/PreferencesWindowController.swift

26 lines
624 B
Swift
Raw Normal View History

2020-06-06 00:11:22 +00:00
//
// PreferencesWindowController.swift
// A2Mac
//
// Created by Tamas Rudnai on 6/4/20.
// Copyright © 2020 GameAlloy. All rights reserved.
//
import Cocoa
class PreferencesWindowController: NSWindowController, NSWindowDelegate {
override func windowDidLoad() {
super.windowDidLoad()
// Implement this method to handle any initialization after your window controller's window has been loaded from its nib file.
}
func windowShouldClose(_ sender: NSWindow) -> Bool {
// Hide window instead of closing
self.window?.orderOut(sender)
return false
}
}