• 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: Steve Israelson <email@hidden>
  • Date: Tue, 20 Mar 2007 21:41:21 -0700

Well, the drawing is simplistic.
Item things like Name : Joe  Number of items: 25
In an html table.
Maybe an image or 2.
Themeable using custom CSS supplied by the user.

My own rendering system will just draw attributed strings.
Maybe parse css to get rendering attributes.
Probably add some way to organize and layout the items.

See, this is what html is for :)

Maybe I just parse the html myself?  Its only 20 lines or so,

On 20-Mar-07, at 9:37 PM, I. Savant wrote:

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


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

  • Prev by Date: Re: Embedding a WebView in a Table
  • Next by Date: Re: Embedding a WebView in a Table
  • Previous by thread: Re: Embedding a WebView in a Table
  • Next by thread: Re: Embedding a WebView in a Table
  • Index(es):
    • Date
    • Thread