Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Embedding a WebView in a Table



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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.