Re: Waiting for UIWebView with Dispatch Semaphores
Re: Waiting for UIWebView with Dispatch Semaphores
- Subject: Re: Waiting for UIWebView with Dispatch Semaphores
- From: David Duncan <email@hidden>
- Date: Tue, 21 Dec 2010 08:59:56 -0800
On Dec 21, 2010, at 8:52 AM, Jeff Kelley wrote:
> Is there a way to synchronously wait for the web view? All
> combinations of splitting things off on separate threads fall apart
> when I try to wait for the image to be created.
Why do this synchronously at all? The web view already gives you a notification, use that to generate your thumbnail and signal the caller.
Also consider that if the rendering takes a significant time, blocking the main thread *will* cause your application to be killed by the watchdog timer. Basically trying to do this synchronously is not only a waste of time, but a dead end that will fail for anything but the simplest of scenes.
--
David Duncan
_______________________________________________
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