summaryrefslogtreecommitdiff
path: root/kies/PromptText.swift
diff options
context:
space:
mode:
Diffstat (limited to 'kies/PromptText.swift')
-rw-r--r--kies/PromptText.swift28
1 files changed, 28 insertions, 0 deletions
diff --git a/kies/PromptText.swift b/kies/PromptText.swift
new file mode 100644
index 0000000..7cd6750
--- /dev/null
+++ b/kies/PromptText.swift
@@ -0,0 +1,28 @@
+//
+// KiesPromptText.swift
+// kies
+//
+// Created by Thomas Billiet on 08/04/2019.
+// Copyright © 2019 Thomas Billiet. All rights reserved.
+//
+
+import Foundation
+import Cocoa
+
+class PromptText: NSTextField {
+ init(text: String) {
+ super.init(frame: layouts.promptRect)
+ stringValue = text
+ isEditable = false
+ drawsBackground = false
+ isSelectable = false
+ bezelStyle = .squareBezel
+ font = settings.font
+ isBordered = false
+ autoresizingMask = [NSView.AutoresizingMask.width]
+ }
+
+ required init?(coder: NSCoder) {
+ fatalError("init(coder:) has not been implemented")
+ }
+}