Re: NSTextView with RTF as string?
Re: NSTextView with RTF as string?
- Subject: Re: NSTextView with RTF as string?
- From: Douglas Davidson <email@hidden>
- Date: Fri, 6 May 2005 15:02:13 -0700
On May 6, 2005, at 2:34 PM, John Timmer wrote: Thanks for the pointers. I’d been using RTF because I’ve got user-generated RTF information stored in Core Data objects as data, and I couldn’t come up with a clean way to merge that into HTML text. I guess if I build up the table using HTML and then convert that to RTF, I can get everything into one container.
Generally speaking, the easiest way to merge pieces of text is to convert them to attributed strings and work with those. Raw RTF is not usually suitable for concatenation, substring, or insertion operations. HTML may be in certain cases, but only if you understand the structure of the pieces being combined.
Douglas Davidson
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden