Re: AttributedString from NSData on iPhone.
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