Skip to content

Commit

Permalink
compatibility properties (always fasle)
Browse files Browse the repository at this point in the history
  • Loading branch information
krzyzanowskim committed Apr 30, 2023
1 parent a494977 commit a013597
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/STTextView/STTextView+CopyPaste.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
4 changes: 4 additions & 0 deletions Sources/STTextView/STTextView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a013597

Please sign in to comment.