• 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: iOS Rendering PDFs on a Background Thread
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: iOS Rendering PDFs on a Background Thread


  • Subject: Re: iOS Rendering PDFs on a Background Thread
  • From: Dave <email@hidden>
  • Date: Thu, 26 Jul 2012 22:39:43 +0100


On 26 Jul 2012, at 22:17, David Duncan wrote:

On Jul 26, 2012, at 2:09 PM, Dave <email@hidden> wrote:

I've got the code working on the Main Thread, but now the tricky bit because since I am using UIGraphicsBeginImageContextWithOptions and UIGraphicsEndImageContext in order to capture the Image, and, as far as I know these methods can only be called on the Main Thread. Is this correct?


No, these methods are fine as long as you use the context only within the same invocation (that is, don't try to share the context between threads or split the begin/end between threads).

Really? Just double checking you mean what you mean. My code basicall

UIGraphicsBeginImageContextWithOptions
UIGraphicsGetCurrentContext
---Reander PDF Page into the Context obtained above.
UIGraphicsGetImageFromCurrentImageContext
UIGraphicsEndImageContext

This is all in one method that runs in one thread, are you saying this will work ok?

Thanks a lot for your help.
Dave



_______________________________________________

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: iOS Rendering PDFs on a Background Thread
      • From: David Duncan <email@hidden>
References: 
 >iOS Rendering PDFs on a Background Thread (From: Dave <email@hidden>)
 >Re: iOS Rendering PDFs on a Background Thread (From: David Duncan <email@hidden>)

  • Prev by Date: Re: iOS Rendering PDFs on a Background Thread
  • Next by Date: Re: iOS Rendering PDFs on a Background Thread
  • Previous by thread: Re: iOS Rendering PDFs on a Background Thread
  • Next by thread: Re: iOS Rendering PDFs on a Background Thread
  • Index(es):
    • Date
    • Thread