• 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: Bruce Cresanta <email@hidden>
  • Date: Thu, 24 Feb 2011 20:57:25 -0700

John,

This is what I have:

- (void)webView:(WebView *)sender didFinishLoadForFrame:(WebFrame *)frame
{
	// Only report feedback for the main frame.
    if (frame == [sender mainFrame]){

		while([sender isLoading]) {}; //delay until fully loaded
		[self setTabArrows:[tabs currentTab]];
		[pageData release];
		pageData = [[[[sender mainFrame] dataSource] data] copy] ; //This is NIL for certain webpages like http://php.net


		[tabs setAllowAnalyze:YES];


		[tabs stopReloading];
		[tabs stopProgressForCurrentTab];

	}
}
On Feb 24, 2011, at 8:54 PM, John Joyce wrote:

>
> 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

References: 
 >Inconsistent Data in Webkit (From: Bruce Cresanta <email@hidden>)
 >Re: Inconsistent Data in Webkit (From: John Joyce <email@hidden>)

  • Prev by Date: Re: Inconsistent Data in Webkit
  • Next by Date: CALayer setting content on separate thread
  • Previous by thread: Re: Inconsistent Data in Webkit
  • Next by thread: CALayer setting content on separate thread
  • Index(es):
    • Date
    • Thread