2018-02-03 06:56:17 +01:00
|
|
|
//
|
|
|
|
// RenameWindowController.swift
|
|
|
|
// Evergreen
|
|
|
|
//
|
|
|
|
// Created by Brent Simmons on 1/28/18.
|
|
|
|
// Copyright © 2018 Ranchero Software. All rights reserved.
|
|
|
|
//
|
|
|
|
|
2018-02-03 07:51:32 +01:00
|
|
|
import AppKit
|
|
|
|
|
2018-02-03 08:00:09 +01:00
|
|
|
final class RenameWindowController: NSWindowController {
|
2018-02-03 07:51:32 +01:00
|
|
|
|
2018-02-03 08:00:09 +01:00
|
|
|
@IBOutlet var renamePrompt: NSTextField!
|
|
|
|
@IBOutlet var newTitleTextField: NSTextField!
|
|
|
|
@IBOutlet var renameButton: NSButton!
|
|
|
|
|
|
|
|
private var originalTitle: String!
|
|
|
|
|
|
|
|
public convenience init(originalTitle: String) {
|
|
|
|
|
|
|
|
self.init(windowNibName: NSNib.Name(rawValue: "RenameSheet"))
|
|
|
|
self.originalTitle = originalTitle
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|