• 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: NSMutableAttributedString initWithHTML / initWithData trouble
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >NSMutableAttributedString initWithHTML / initWithData trouble (From: Greg Hoover <email@hidden>)

  • Prev by Date: Re: Getting an NSAttributedString from NSData/NSTextView using Core Data
  • Next by Date: RS: "buttons view"
  • Previous by thread: NSMutableAttributedString initWithHTML / initWithData trouble
  • Next by thread: NSTask and 45, "Operation not supported" error
  • Index(es):
    • Date
    • Thread