Re: How to get documentView in a WebView?
Re: How to get documentView in a WebView?
- Subject: Re: How to get documentView in a WebView?
- From: Robert Walker <email@hidden>
- Date: Tue, 11 Apr 2006 14:37:13 -0400
NSLog(@"%@", [[[webView mainFrame] frameView] documentView]);
This message does return (null) until there is actual web content
being displayed within the main frame's frame view. I just tested
this myself.
My results before and after displaying a web page in the main frame:
------------------------------------------------------------------------
-
2006-04-11 14:35:21.919 WebFrameTest[9621] (null)
2006-04-11 14:35:37.165 WebFrameTest[9621] <WebHTMLView: 0x3a41d0>
------------------------------------------------------------------------
-
On Apr 11, 2006, at 1:19 PM, Tristan Jehan wrote:
Sorry for asking this basic question again. But I still don't
understand why the second line returns (null):
- (void) awakeFromNib
{
NSLog(@"%@", [[webView mainFrame] frameView]);
NSLog(@"%@", [[[webView mainFrame] frameView] documentView]);
}
Isn't there a default document view in my WebView?
Thanks for any hints.
Tristan
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40mac.com
This email sent to email@hidden
--
Robert Walker
email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden