Re: estimatedProgress: not updating
Re: estimatedProgress: not updating
- Subject: Re: estimatedProgress: not updating
- From: Shawn Erickson <email@hidden>
- Date: Wed, 28 Dec 2005 09:57:50 -0800
On 12/28/05, Eamon Ford <email@hidden> wrote:
>
I have a WebView, and I need to know when it's done loading. But it
>
has to do different things when it finishes loading, depending on the
>
method that invoked it, so I'm using the estimatedProgress method
>
instead of webView:didFinishLoadForFrame:. But for some reason, it
>
never gets to 1.0, even though the webView finished loading. Is there
>
something I'm missing?
Not sure about the expect behavior of estimatedProgress (looks like it
should go to 1.0) but have you tried to understand if the WebView
thinks things are done loading by listening for
WebViewProgressFinsihedNotification [1]?
It could be that some resource couldn't be loaded so it didn't finish
fully loading things and later times out on the unloaded resources.
...on a side note I think the detailed description for
WebViewProgressStartedNotification [2] and
WebViewProgressEstimateChangedNotification [3] are reversed in the
documentation... what do others think?
-Shawn
[1] <
http://developer.apple.com/documentation/Cocoa/Reference/WebKit/ObjC_classic/Classes/WebView.html#//apple_ref/c/econst/WebViewProgressFinishedNotification>
[2] <
http://developer.apple.com/documentation/Cocoa/Reference/WebKit/ObjC_classic/Classes/WebView.html#//apple_ref/c/econst/WebViewProgressStartedNotification>
[3] <
http://developer.apple.com/documentation/Cocoa/Reference/WebKit/ObjC_classic/Classes/WebView.html#//apple_ref/c/econst/WebViewProgressEstimateChangedNotification>
_______________________________________________
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