Re: NSAttributedString can't initWithHTML
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