Re: estimatedProgress: not updating
Re: estimatedProgress: not updating
- Subject: Re: estimatedProgress: not updating
- From: Markus Hitter <email@hidden>
- Date: Wed, 28 Dec 2005 19:11:08 +0100
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