• 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: estimatedProgress: not updating
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: estimatedProgress: not updating
      • From: Eamon Ford <email@hidden>
References: 
 >estimatedProgress: not updating (From: Eamon Ford <email@hidden>)

  • Prev by Date: Missing Window in NSInputServiceProvider Example
  • Next by Date: Re: estimatedProgress: not updating
  • Previous by thread: estimatedProgress: not updating
  • Next by thread: Re: estimatedProgress: not updating
  • Index(es):
    • Date
    • Thread