• 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: knowing when WebView is done
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: knowing when WebView is done
      • From: Timothy Ritchey <email@hidden>
References: 
 >Re: knowing when WebView is done (From: Mark Bateman <email@hidden>)
 >Re: knowing when WebView is done (From: Rush Manbert <email@hidden>)
 >Re: knowing when WebView is done (From: Timothy Ritchey <email@hidden>)

  • Prev by Date: Core Data Questions
  • Next by Date: Re: Core Data Questions
  • Previous by thread: Re: knowing when WebView is done
  • Next by thread: Re: knowing when WebView is done
  • Index(es):
    • Date
    • Thread