Re: Display Rich Text Encoding within plain text
Re: Display Rich Text Encoding within plain text
- Subject: Re: Display Rich Text Encoding within plain text
- From: Ian was here <email@hidden>
- Date: Mon, 18 Jul 2005 19:01:35 -0700 (PDT)
Sorry for being so vague earlier. The issue that I'm
having is being able to save rich text formatting to a
plain text file. The problem is that if I take the
rich text in a text view and move it to an NSString,
then the rich text encoding is stripped away, and the
plain text itself remains. I want to display all the
gobbledeegook from the RTF.
--- Douglas Davidson <email@hidden> wrote:
>
> 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
>
>
____________________________________________________
Start your day with Yahoo! - make it your home page
http://www.yahoo.com/r/hs
_______________________________________________
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