• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Embedding a WebView in a Table
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Embedding a WebView in a Table


  • Subject: Re: Embedding a WebView in a Table
  • From: "I. Savant" <email@hidden>
  • Date: Tue, 20 Mar 2007 23:09:51 -0400


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:
40gmail.com


This email sent to email@hidden

_______________________________________________

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


  • Follow-Ups:
    • Re: Embedding a WebView in a Table
      • From: Steve Israelson <email@hidden>
References: 
 >Embedding a WebView in a Table (From: Steve Israelson <email@hidden>)

  • Prev by Date: Re: NSData dataWithBytes problem on Intel
  • Next by Date: Re: Embedding a WebView in a Table
  • Previous by thread: Embedding a WebView in a Table
  • Next by thread: Re: Embedding a WebView in a Table
  • Index(es):
    • Date
    • Thread