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: Cliff Crawford <email@hidden>
- Date: Mon, 11 Jun 2001 23:17:40 -0400
* John C. Randolph <email@hidden> menulis:
>
[ContentText selectAll:nil];
>
[ContentText insertText:content]; // <- this is NOT working.
>
}
>
>
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?
[[ContentText textStorage] setAttributedString: content];
(I'm doing the same thing, that's how I know that ;)
--
Cliff Crawford
http://www.sowrong.org/
"Cliff, you're a god. I want to bear your child." -- Ed