• 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: Inconsistent Data in Webkit
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Inconsistent Data in Webkit
      • From: Bruce Cresanta <email@hidden>
References: 
 >Inconsistent Data in Webkit (From: Bruce Cresanta <email@hidden>)

  • Prev by Date: Re: On NSClassFromString method
  • Next by Date: Re: Inconsistent Data in Webkit
  • Previous by thread: Inconsistent Data in Webkit
  • Next by thread: Re: Inconsistent Data in Webkit
  • Index(es):
    • Date
    • Thread