Re: NSMutableAttributedString initWithHTML / initWithData trouble
Re: NSMutableAttributedString initWithHTML / initWithData trouble
- Subject: Re: NSMutableAttributedString initWithHTML / initWithData trouble
- From: Martin Wierschin <email@hidden>
- Date: Tue, 17 Jul 2007 04:34:53 -0700
Hi Greg,
I have been using the initWithHTML function to convert from an
already loaded HTML string, but some of the time run into this crash.
...
NSMutableAttributedString *attrStr = [[NSMutableAttributedString
alloc] initWithData: titleData
I've run into a seemingly similar crash when reading HTML into an
NSTextStorage (radar://5273406). The solution was to read the string
into the non-mutable subclass NSAttributedString and then acquire a
mutable copy. I hope that workaround fixes your case as well!
~Martin
_______________________________________________
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