Add a whole ton more code.

This commit is contained in:
Brent Simmons
2017-05-27 10:43:27 -07:00
parent 4969c44c40
commit 19ce82329b
60 changed files with 5299 additions and 64 deletions

View File

@@ -0,0 +1,38 @@
//
// IndeterminateProgressWindowController.swift
// Evergreen
//
// Created by Brent Simmons on 8/28/16.
// Copyright © 2016 Ranchero Software. All rights reserved.
//
import Cocoa
class IndeterminateProgressWindowController: NSWindowController {
@IBOutlet var messageLabel: NSTextField!
@IBOutlet var progressIndicator: NSProgressIndicator!
dynamic var message = ""
convenience init(message: String) {
self.init(windowNibName: "IndeterminateProgressWindow")
self.message = message
}
override func windowDidLoad() {
progressIndicator.startAnimation(self)
}
}
func runIndeterminateProgressWithMessage(_ message: String) {
let windowController = IndeterminateProgressWindowController(message: message)
NSApplication.shared().runModal(for: windowController.window!)
}
func stopIndeterminateProgress() {
NSApplication.shared().stopModal()
}