Re: (no subject)
Re: (no subject)
- Subject: Re: (no subject)
- From: Douglas Davidson <email@hidden>
- Date: Mon, 18 Jul 2005 12:43:19 -0700
On Jul 18, 2005, at 12:35 PM, Ian was here wrote:
Does anyone know how to get RTF formatting text into
an NSString? The string method in NSTextView strips
the formatting away. I found a workaround, but it's
ugly. I'm writing rich text out to disk, then loading
plain text back in, showing all the RTF formatting
(which is what I want).
I'm not sure exactly what you want, but the contents of an RTF file
aren't really a string. Cocoa treats RTF as data because it does not
necessarily have a definite encoding. If you want to convert it to a
string, you will need to pick an encoding.
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
References: | |
| >(no subject) (From: Ian was here <email@hidden>) |