• 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: Waiting for UIWebView with Dispatch Semaphores
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Waiting for UIWebView with Dispatch Semaphores


  • Subject: Re: Waiting for UIWebView with Dispatch Semaphores
  • From: Jeff Kelley <email@hidden>
  • Date: Tue, 21 Dec 2010 12:24:35 -0500

On Tue, Dec 21, 2010 at 11:59 AM, David Duncan <email@hidden> wrote:
>
> Why do this synchronously at all? The web view already gives you a notification, use that to generate your thumbnail and signal the caller.

What I’m trying to do is create a thumbnail for a PowerPoint that,
when clicked, opens a web view with the PowerPoint inside. I’d like it
to be synchronous so that I can create thumbnails on demand if they
aren’t already created. I’ll probably move forward with something that
creates a full-size image asynchronously on downloading the
PowerPoint, then dynamically resize that image to make my thumbnail,
but this feels like something that *should* be possible.

> 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.

The alternative, then, would be to find a way to render a PPT on a
background thread, which UIWebView doesn’t seem suited for. Thanks for
your comments.


Jeff Kelley
_______________________________________________

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

References: 
 >Waiting for UIWebView with Dispatch Semaphores (From: Jeff Kelley <email@hidden>)
 >Re: Waiting for UIWebView with Dispatch Semaphores (From: David Duncan <email@hidden>)

  • Prev by Date: Re: Waiting for UIWebView with Dispatch Semaphores
  • Next by Date: Re: Improving drawing of UIView with many many Subviews
  • Previous by thread: Re: Waiting for UIWebView with Dispatch Semaphores
  • Next by thread: App submission
  • Index(es):
    • Date
    • Thread