• 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: Eamon Ford <email@hidden>
  • Date: Wed, 28 Dec 2005 15:48:28 -0800

Hmm, I registered for WebViewProgressFinishedNotification, but I'm not getting it. I also tried WebViewProgressStartedNotification and WebViewProgressEstimateChangedNotification, and it's not picking any of them up. Here's my code:

[[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(WebViewProgressFinished:)
name:@"WebViewProgressFinishedNotification"
object:nil];

Is there something else I have to do?


On Dec 28, 2005, at 10:11 AM, Markus Hitter wrote:


Am 28.12.2005 um 18:33 schrieb Eamon Ford:

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?

1) Polling is bad.

2) Don't fight the frameworks. Use the methods intended to be used for a specific task.

If you want to spread information about a finished download to different areas, either send more than one method in the delegate or send a notification from there. Any party interested in the notification can subscribe for that notification. Many delegates have a notification counterpart already.


Markus

- - - - - - - - - - - - - - - - - - -
Dipl. Ing. Markus Hitter
http://www.jump-ing.de/





_______________________________________________
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: Ryan Britton <email@hidden>
References: 
 >estimatedProgress: not updating (From: Eamon Ford <email@hidden>)
 >Re: estimatedProgress: not updating (From: Markus Hitter <email@hidden>)

  • Prev by Date: Re: NSTextField: textDidEndEditing delegate isn't firing
  • Next by Date: Re: bindings, popup menu, and additional options
  • Previous by thread: Re: estimatedProgress: not updating
  • Next by thread: Re: estimatedProgress: not updating
  • Index(es):
    • Date
    • Thread