• 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 10:15:43 -0800

OK, I guess I'll use a notification then. Thanks.


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

  • Prev by Date: Cocoa NIB Design Question in JPG
  • Next by Date: Re: Cocoa NIB Design Question in JPG
  • Previous by thread: Re: estimatedProgress: not updating
  • Next by thread: Re: estimatedProgress: not updating
  • Index(es):
    • Date
    • Thread