Refactor the document window controller and the prefs controller. Some regression still in there.

This commit is contained in:
Damiano Galassi committed 2018-02-08 17:50:39 +01:00
1 parent cd27e2ce52
commit 94f5f85124
49 files changed
+2505 -2379

No files matched your search

+19
View File
@@ -0,0 +1,19 @@
//
// PrefsWindow.swift
// Subler
//
// Created by Damiano Galassi on 06/02/2018.
//
import Cocoa
class PrefsWindow: NSWindow {
override func validateMenuItem(_ menuItem: NSMenuItem) -> Bool {
if menuItem.action == #selector(NSWindow.toggleToolbarShown(_:)) {
return false
}
return super.validateMenuItem(menuItem)
}
}