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

+3 -3
View File
@@ -26,10 +26,11 @@ class PresetPrefsViewController: NSViewController, NSTableViewDataSource, NSTabl
self.currentRow = 0
self.presetManager = PresetManager.shared
super.init(nibName: nil, bundle: nil)
self.title = NSLocalizedString("Sets", comment: "")
}
override func loadView() {
super.loadView()
override func viewDidLoad() {
super.viewDidLoad()
observer = NotificationCenter.default.addObserver(forName: presetManager.updateNotification,
object: nil,
@@ -99,7 +100,6 @@ class PresetPrefsViewController: NSViewController, NSTableViewDataSource, NSTabl
}
}
@IBAction func toggleInfoWindow(_ sender: NSView) {
let rowIndex = tableView.row(for: sender)