• 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: AttributedString from NSData on iPhone.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AttributedString from NSData on iPhone.


  • Subject: Re: AttributedString from NSData on iPhone.
  • From: David Duncan <email@hidden>
  • Date: Thu, 5 Aug 2010 09:22:44 -0700

On Aug 5, 2010, at 9:00 AM, Kyle Sluder wrote:

> On Thu, Aug 5, 2010 at 8:16 AM, Sandro Noël <email@hidden> wrote:
>> NSMutableDictionary *dict = [NSMutableDictionary dictionaryWithObject:NSRTFDTextDocumentType forKey:NSDocumentTypeDocumentAttribute];
>
> iOS has no RTF support. You'll need to use HTML (but I have no idea if
> NSAttributedString on iOS will read HTML, either).


It won't. iOS doesn't provide any parsers that generate an NSAttributedString from a file.

My recommendation to Sandro (assuming I understand his situation) would be to store a representation of the NSAttributedString (probably as strings with matching attribute dictionaries) and reassemble the NSAttributedString from that at runtime.
--
David Duncan

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: AttributedString from NSData on iPhone.
      • From: Sandro Noël <email@hidden>
    • Re: AttributedString from NSData on iPhone.
      • From: Kyle Sluder <email@hidden>
References: 
 >AttributedString from NSData on iPhone. (From: Sandro Noël <email@hidden>)
 >Re: AttributedString from NSData on iPhone. (From: Kyle Sluder <email@hidden>)

  • Prev by Date: Re: UIImageView and UIViewContentModeBottomLeft
  • Next by Date: Re: AttributedString from NSData on iPhone.
  • Previous by thread: Re: AttributedString from NSData on iPhone.
  • Next by thread: Re: AttributedString from NSData on iPhone.
  • Index(es):
    • Date
    • Thread