• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Display Rich Text Encoding within plain text
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Re: (no subject) (From: Douglas Davidson <email@hidden>)

  • Prev by Date: programmatically inserted dock items not showing up
  • Next by Date: Re: tooltip event/notification?
  • Previous by thread: Re: (no subject)
  • Next by thread: (no subject)
  • Index(es):
    • Date
    • Thread