Re: knowing when WebView is done
Re: knowing when WebView is done
- Subject: Re: knowing when WebView is done
- From: "Adam R. Maxwell" <email@hidden>
- Date: Fri, 06 Jun 2008 16:06:12 -0700
On Jun 5, 2008, at 7:03 PM, Timothy Ritchey wrote:
even if I track frame commit/finish load as suggested in the thread,
if I try to get rid of the webview, the world falls down around me
when it can't push out that last delegate call of didReceiveTitle.
I generally send stopLoading: to a webview before disposing of it (and
set any delegates to nil).
I tried even counting title/icon, etc. and that didn't even help
(you can see there are two calls to the title delegate, both for the
main frame. There just doesn't appear to be a deterministic way to
figure out when WebView is actually done, and safe to release.
Have you tried using -isLoading in the didFinishLoadForFrame: delegate
method? After seeing this thread, I switched my own webview
thumbnailing code to use that, since previously I was just checking to
see if the main frame finished loading. Seems to work.
--
adam
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden