Re: I know I've done this before...
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