Re: Inconsistent Data in Webkit
Re: Inconsistent Data in Webkit
- Subject: Re: Inconsistent Data in Webkit
- From: John Joyce <email@hidden>
- Date: Fri, 25 Feb 2011 12:54:13 +0900
On Feb 25, 2011, at 12:24 PM, Bruce Cresanta wrote:
> Hello,
>
> I've noticed that certain webpages render fine in WebView, but that the data in the dataSource remains nil. Is this a bug in webkit? Is there a way to get consistent data? For example, http://www.php.net renders fine in the browser, but the control's data is never set.
>
> Thanks
>
> Bruce
The webview itself does not have a dataSource.
Try the WebFrameDelegate informal protocol delegate method:
- (void)webView:(WebView *)sender didFinishLoadForFrame:(WebFrame *)frame {
NSLog(@"Loaded frame: %@",frame);
// NSLog(@"WebView dataSource: %@", [wb dataSource]);
// WebView itself does not respond to dataSource
NSLog(@"frame dataSource: %@",[[[frame dataSource] mainResource] URL]);
// a webFrame has a dataSource. a dataSource has attributes.
}
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please 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