• 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: converting NSData to string
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: converting NSData to string


  • Subject: Re: converting NSData to string
  • From: PGM <email@hidden>
  • Date: Thu, 6 Jul 2006 23:27:52 -0400

Rex,

Possibly, you can first make an NSAttributedString using initWithRTF:documentAttributes: and then get the plain string from that attributed string.

Patrick

On Jul 6, 2006, at 18:50, Rex Fernando wrote:

Hello,

I have an NSData with rtf data in it. I want an NSString with the plain text of the data, no tags or images in it. I tried stringWithData:Encoding:, but couldn't get it to work. Can someone help me?

Thanks,

Rex

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
email@hidden


This email sent to email@hidden


_______________________________________________ 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: 
 >converting NSData to string (From: Rex Fernando <email@hidden>)

  • Prev by Date: Re: Of saving a QTMovie created from a NSURL and the resulting disappointments
  • Next by Date: bindings bug?
  • Previous by thread: Re: converting NSData to string
  • Next by thread: Re: converting NSData to string
  • Index(es):
    • Date
    • Thread