• 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: I know I've done this before...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: I know I've done this before...


  • Subject: Re: I know I've done this before...
  • From: David P Henderson <email@hidden>
  • Date: Mon, 11 Jun 2001 23:16:33 -0400

On Monday, June 11, 2001, at 07:51 , John C. Randolph wrote:

Here's what I'm trying to do: sender is a textfield that provides an URL. ContentText is an NSTextView in which I want to display the formatted text I've retrieved.
[snip]
I know I've done this before, but I don't recall how to insert an NSAttributedString into an NSTextView, preserving its formatting. Do I have to stick it in the pasteboard first?

Since you have an Attributed String why not insert it into the text view's textstorage which is a subclass of NSMutableAttributedString?

Dave
--
Chaos Assembly Werks
"Beautiful bodies and beautiful personalities rarely go together."
- Carl Jung


References: 
 >I know I've done this before... (From: "John C. Randolph" <email@hidden>)

  • Prev by Date: Re: I know I've done this before...
  • Next by Date: Re: NSView drawRect vs. autoscrolling
  • Previous by thread: Re: I know I've done this before...
  • Next by thread: Re: I know I've done this before...
  • Index(es):
    • Date
    • Thread