Re: estimatedProgress: not updating
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