Using WebKit to display data that's not in HTML
Using WebKit to display data that's not in HTML
- Subject: Using WebKit to display data that's not in HTML
- From: "Joe Goh" <email@hidden>
- Date: Mon, 18 Sep 2006 13:34:22 +0800
Hi everyone,
I'm trying to use a WebView to display some data that I have stored in
CoreData, as I would like to use CSS to style the output.
So far, my approach uses something like this,
[[[document documentElement] firstChild] setInnerHTML:@"<p>some string
from CoreData</p>"];
It seems like an awful hack however, and i'm inclined to try something
else, but I can't seem to find any documentation from how to do this
from the developer docs, as it all seems to be written for the
developer that uses WebKit for displaying HTML documents.
I'm totally lost on the direction I should take - should I be
subclassing WebDataSource? Do I use createTextNode: ?
Any help appreciated!
Thanks!
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