Re: AttributedString from NSData on iPhone.
Re: AttributedString from NSData on iPhone.
- Subject: Re: AttributedString from NSData on iPhone.
- From: Sandro Noël <email@hidden>
- Date: Thu, 5 Aug 2010 13:13:36 -0400
David, you do understand properly as that was my question.
how do i reassemble the NSAttributedString from a NSData where it was stored.
On 2010-08-05, at 12:22 PM, David Duncan wrote:
> 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