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

+31
View File
@@ -0,0 +1,31 @@
//
// ProgressViewController.swift
// Subler
//
// Created by Damiano Galassi on 07/02/2018.
//
import Cocoa
protocol ProgressViewControllerDelegate : AnyObject {
func cancel()
}
class ProgressViewController: NSViewController {
@IBOutlet var cancelButton: NSButton!
@IBOutlet var progressString: NSTextField!
@IBOutlet var progressBar: NSProgressIndicator!
weak var delegate: ProgressViewControllerDelegate?
override func viewDidLoad() {
super.viewDidLoad()
// Do view setup here.
}
@IBAction func cancel(_ sender: Any) {
delegate?.cancel()
cancelButton.isEnabled = false
}
}