Steve2/A2Mac/PreferencesWindowController.swift
2020-06-05 17:11:22 -07:00

26 lines
624 B
Swift

//
// 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
}
}