Re: Using WebKit to display data that's not in HTML
Re: Using WebKit to display data that's not in HTML
- Subject: Re: Using WebKit to display data that's not in HTML
- From: "Joe Goh" <email@hidden>
- Date: Tue, 19 Sep 2006 13:50:13 +0800
On 9/19/06, Justin Anderson <email@hidden> wrote:
WebKit is for displaying HTML. If you want to display data that's not
in HTML, format it into HTML and then pass it to WebKit.
You will probably want to use NSXMLDocument to build the HTML and
then pass your NSXMLDocument's string value to your WebView with
loadHTMLString:baseURL:.
That seems like a good approach too, but this seems like a similar
approach to my previous naive approach of directly changing the HTML
tags using the innerHTML: method. I don't really gain anything from
using the XML approach, unless i'm missing something.
Joe
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden