• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: What is the preferred way to set NSTextView content from NSAttributedString?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: RE: What is the preferred way to set NSTextView content from NSAttributedString?
  • Next by Date: Re: What is the preferred way to set NSTextView content from NSAttributedString?
  • Previous by thread: What is the preferred way to set NSTextView content from NSAttributedString?
  • Next by thread: RE: What is the preferred way to set NSTextView content from NSAttributedString?
  • Index(es):
    • Date
    • Thread