Embedding a WebView in a Table
Embedding a WebView in a Table
- Subject: Embedding a WebView in a Table
- From: Steve Israelson <email@hidden>
- Date: Tue, 20 Mar 2007 20:05:44 -0700
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