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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to