• 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: CALayer maybe silly question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CALayer maybe silly question


  • Subject: Re: CALayer maybe silly question
  • From: David Duncan <email@hidden>
  • Date: Mon, 25 Jan 2010 12:39:10 -0800

On Jan 25, 2010, at 12:02 PM, vincent habchi wrote:

> the silly question is this: is it possible to redraw a CALayer in background?
>
> More specifically, I've written a delegate method drawLayer:inContext: that creates a thread that does the drawing then returns.


If you want to draw to a layer on a separate thread, you need to run the runloop on that thread, as Core Animation is pretty highly dependent on the run loop operating. If you call -setNeedsDisplay on a thread where you never run the runloop, then it is likely that the layer's -display method will not be called until the thread terminates, which is likely your issue.
--
David Duncan
Apple DTS Animation and Printing

_______________________________________________

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: CALayer maybe silly question
      • From: vincent habchi <email@hidden>
    • Re: CALayer maybe silly question
      • From: vincent habchi <email@hidden>
References: 
 >CALayer maybe silly question (From: vincent habchi <email@hidden>)

  • Prev by Date: Re: Fastest way to convert an NSDate into an NSString
  • Next by Date: Re: Fastest way to convert an NSDate into an NSString
  • Previous by thread: CALayer maybe silly question
  • Next by thread: Re: CALayer maybe silly question
  • Index(es):
    • Date
    • Thread