Deactivated close and min button

This commit is contained in:
Gerrit Linnemann 2016-12-28 09:00:56 +01:00
parent 8543405421
commit 9493d4f5bd
2 changed files with 3 additions and 0 deletions

View File

@ -25,6 +25,9 @@ class WindowController: NSWindowController {
// Implement this method to handle any initialization after your window controller's window has been loaded from its nib file. // Implement this method to handle any initialization after your window controller's window has been loaded from its nib file.
self.window!.standardWindowButton(NSWindowButton.closeButton)!.isEnabled = false
self.window!.standardWindowButton(NSWindowButton.miniaturizeButton)!.isEnabled = false
self.activity.stringValue = "" self.activity.stringValue = ""
let nc = NotificationCenter.default let nc = NotificationCenter.default