• 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: (no subject)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Display Rich Text Encoding within plain text
      • From: Ian was here <email@hidden>
References: 
 >(no subject) (From: Ian was here <email@hidden>)

  • Prev by Date: (no subject)
  • Next by Date: Re: Special Borders
  • Previous by thread: (no subject)
  • Next by thread: Re: Display Rich Text Encoding within plain text
  • Index(es):
    • Date
    • Thread