Re: Determining optimum size for a WebView
Re: Determining optimum size for a WebView
- Subject: Re: Determining optimum size for a WebView
- From: Matt Gemmell <email@hidden>
- Date: Tue, 24 Jun 2003 17:03:04 +0100
On 24/6/03 at 4:57 pm, I said:
>
Not sure about a WebView (I've only just started playing with WebKit),
>
but if you have a view within a NSScrollView, then the native size of
>
the content should be accessible via:
>
>
[[yourScrollView documentView] frame].size
>
>
You'd need to check the WebKit's documentation to check how to access
>
this. I see that there's a class called WebFrame as well as the
>
WebView class; try looking in the docs for that one.
Followup: maybe this?
[[[[myWebView mainFrame] frameView] documentView] frame].size
Haven't tried it; just glancing at API docs.
Cheers,
-Matt
--
Matt Gemmell
Scotland Software
http://www.scotlandsoftware.com/
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.