Re: Embedding a WebView in a Table
Re: Embedding a WebView in a Table
- Subject: Re: Embedding a WebView in a Table
- From: "I. Savant" <email@hidden>
- Date: Wed, 21 Mar 2007 00:37:08 -0400
On Mar 20, 2007, at 11:54 PM, Steve Israelson wrote:
Yes I have seen that example.
I don't want to have a million WebViews, that would be insane.
Hence me moving ONE around.
Creating and caching images seems to be a better route for you in
this case (since I'm assuming that yes, you do need to render web
content and no, you don't need navigation, just rendering).
I have found a fix though. If call setNeedsDisplay on the WebView
before drawing it it renders completely.
Without seeing your code, it's tough to say why this is necessary,
but is it possible the web content wasn't fully loaded (it's
asynchronous) by the time the view was displayed?
The other issues I have are NOT solved though, so for now I am
writing my own rendering system, since I'll have it done before I
get a reply here I think :)
Regarding the other issues (getting it big enough not to scroll),
I seem to recall a discussion about scrolling (position getting/
setting, I think) on the webkit list that ended in a 'the web view
manages its own scrolling and there's no mechanism for managing it'
type of answer. Again, I may be wrong.
However ... if you can write your own HTML rendering system that
compares even remotely with WebKit, you should join the WebKit team!
That'd be quite impressive. If on the other hand you only need a few
basic drawing aspects, my previous point remains: do you really need
this for rendering actual web content or just to do some drawing you
know how to do with HTML?
--
I.S.
_______________________________________________
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