Re: Embedding a WebView in a Table
Re: Embedding a WebView in a Table
- Subject: Re: Embedding a WebView in a Table
- From: Steve Israelson <email@hidden>
- Date: Tue, 20 Mar 2007 20:54:58 -0700
Yes I have seen that example.
I don't want to have a million WebViews, that would be insane.
Hence me moving ONE around.
I have found a fix though. If call setNeedsDisplay on the WebView
before drawing it it renders completely.
So that issue is solved.
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 :)
On 20-Mar-07, at 8:09 PM, I. Savant wrote:
See this example for using views in place of cells in a table view:
http://www.stepwise.com/Articles/Technical/2003-12-20.01.html
HOWEVER ... do you really need to render web content in a table
or are you just using a web view to do drawing because it's what
you're comfortable with?
If the latter, this approach would be insane overkill ... ;-)
--
I.S.
On Mar 20, 2007, at 11:05 PM, Steve Israelson wrote:
I am trying to make a table that for each row item a WebView is
used to render.
I have made a custom NSCell class that creates a single static
WebView for all Cells to use and I just move this around,
configure its DOM and tell it to draw.
This sort of works.
The main problem is that it only partially draws.
It seems a big chunk of it on the left does not draw. Well, at
times with clicking, scrolling and resizing the window, sometimes
it renders.
I am guessing that moving the WebView around and reconfiguring it
is somehow messing something up, but I can't see why.
Does anyone have any comments?
Is there maybe some BETTER lightweight way to have customizable
cell content rendering?
Also, assuming I ever got this to work, I would like to know how
BIG the WebView wants to be to NOT scroll, and thus I would like
to ASK it.
Then of course alter the row height for that row so the WebView
does not show a scroll bar.
I can see no way to get at this info though.
My only other alternative is to keep around an offscreen window,
configure it, capture it in an NSImage, then just use a zillion
NSImages in my table view.
Or of course write my own lightweight html like display technology
that can display as a NSCell subclass.
_______________________________________________
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