• 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 -drawInContext and GCD
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CALayer -drawInContext and GCD


  • Subject: Re: CALayer -drawInContext and GCD
  • From: Vincent Habchi <email@hidden>
  • Date: Fri, 3 Sep 2010 16:44:38 +0200

Le 3 sept. 2010 à 00:17, David Duncan a écrit :

> Doing so would cause you all manners of pain and suffering, the most common of which is things "mostly" working but occasionally your drawing going into the wrong view. Basically *never* use the context given to you in -drawInContext: outside of that invocation.

Understood.

I have implemented what you suggested. I get a strange behavior: the first time I enqueue a request for display, everything is fine. But then I cannot draw any further: any subsequent call, albeit correctly enqueued in the block, does nothing: the -(void)display method is called, but it does not forward to -(void)drawInContext. As if there were some initialization or finalization step lacking.

Any idea?
Vincent_______________________________________________

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 -drawInContext and GCD
      • From: Vincent Habchi <email@hidden>
References: 
 >CALayer -drawInContext and GCD (From: Vincent Habchi <email@hidden>)
 >Re: CALayer -drawInContext and GCD (From: David Duncan <email@hidden>)
 >Re: CALayer -drawInContext and GCD (From: Chris Parker <email@hidden>)
 >Re: CALayer -drawInContext and GCD (From: David Duncan <email@hidden>)
 >Re: CALayer -drawInContext and GCD (From: vincent habchi <email@hidden>)
 >Re: CALayer -drawInContext and GCD (From: David Duncan <email@hidden>)

  • Prev by Date: Re: UIView animation
  • Next by Date: Re: CALayer -drawInContext and GCD
  • Previous by thread: Re: CALayer -drawInContext and GCD
  • Next by thread: Re: CALayer -drawInContext and GCD
  • Index(es):
    • Date
    • Thread