From a0135973aca7fb11a2de7164e85dc1f46a16297a Mon Sep 17 00:00:00 2001 From: Marcin Krzyzanowski Date: Sun, 30 Apr 2023 22:25:04 +0200 Subject: [PATCH] compatibility properties (always fasle) --- Sources/STTextView/STTextView+CopyPaste.swift | 2 +- Sources/STTextView/STTextView.swift | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Sources/STTextView/STTextView+CopyPaste.swift b/Sources/STTextView/STTextView+CopyPaste.swift index c205d30..5740ef3 100644 --- a/Sources/STTextView/STTextView+CopyPaste.swift +++ b/Sources/STTextView/STTextView+CopyPaste.swift @@ -26,7 +26,7 @@ extension STTextView { } } - @objc func pasteAsPlainText(_ sender: Any?) { + @objc open func pasteAsPlainText(_ sender: Any?) { guard let string = NSPasteboard.general.string(forType: .string) else { return } diff --git a/Sources/STTextView/STTextView.swift b/Sources/STTextView/STTextView.swift index 87c7f42..6034d98 100644 --- a/Sources/STTextView/STTextView.swift +++ b/Sources/STTextView/STTextView.swift @@ -42,6 +42,10 @@ open class STTextView: NSView, NSTextInput { } } + @objc public let isRichText: Bool = true + @objc public let isFieldEditor: Bool = false + @objc public let importsGraphics: Bool = false + /// A Boolean value that determines whether the text view should draw its insertion point. open var shouldDrawInsertionPoint: Bool { isFirstResponder && isEditable