Re: What is the preferred way to set NSTextView content from NSAttributedString?
Re: What is the preferred way to set NSTextView content from NSAttributedString?
- Subject: Re: What is the preferred way to set NSTextView content from NSAttributedString?
- From: Greg Weston via Cocoa-dev <email@hidden>
- Date: Sun, 2 Feb 2020 17:44:43 -0500
> - I want to set the displayed contents of V to T2.
>
> What is/are the recommended way/s to do this?
>
> *I would hope that I could assign V.attributedString = T2, but alas the
> world does not seem to be this simple.*
The documentation suggests you should be working with the view’s textStorage
which is a mutable attributed string. So... just clear it out and reset the
contents from T2?
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden