Replies: 1 comment 1 reply
-
Hi @S1D1T1 I missed this discussion, sorry about that! Ideally, the In the case of the placeholder, that would be a great addition to the component protocol. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Is there a preferred way to access the NSTextView underlying a RichTextEditor?
I came across this tip for setting the "placeholder text" for a field. While NSTextView doesn't have a function to set it, you can access it with the generic
setValue( forKey:)
. The only way I found for applying that to the NSTextView was in the viewConfiguration closure which I pass toRichTextEditor()
. I cast its argument as a NSTextView. Likewise, I set other flags in that closure as well. But this doesn't give much programmatic access - if you wanted to set these things later.Beta Was this translation helpful? Give feedback.
All reactions