• 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: NSAttributedString can't initWithHTML
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSAttributedString can't initWithHTML


  • Subject: Re: NSAttributedString can't initWithHTML
  • From: Douglas Davidson <email@hidden>
  • Date: Wed, 24 Jan 2007 14:36:29 -0800


On Jan 24, 2007, at 2:12 PM, Falko wrote:

I'm trying to use a NSAttributedString to display html data similar to the preview function
in some of those html editors. The problem is, that NSAttributedString seems to have
problems parsing certain kinds of html files and returns NULL.


Is there any way to find out why exactly the data couldn't be parsed? E.g. it seems like
it can't use html data created with iWeb...
Also, I couldn't find any documentation on what html standards are supported.


I can't use a WebView as the data I want to preview won't always be available in a file.
Is it possible to somehow "fix" html-data to work with an NSAttributedString?

NSAttributedString uses WebKit for its HTML import. Please file a bug if you encounter HTML that it cannot handle. (As a side note, you can definitely use a WebView with non-file data. Call the main frame with loadData:MIMEType:textEncodingName:baseURL: and let the run loop run.)


Douglas Davidson

_______________________________________________

Cocoa-dev mailing list (email@hidden)

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: NSAttributedString can't initWithHTML
      • From: John Stiles <email@hidden>
References: 
 >NSAttributedString can't initWithHTML (From: Falko <email@hidden>)

  • Prev by Date: NSAttributedString can't initWithHTML
  • Next by Date: Re: NSAttributedString can't initWithHTML
  • Previous by thread: NSAttributedString can't initWithHTML
  • Next by thread: Re: NSAttributedString can't initWithHTML
  • Index(es):
    • Date
    • Thread