• 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
Redrawing CALayer subclass when super layer is scaled
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Redrawing CALayer subclass when super layer is scaled


  • Subject: Redrawing CALayer subclass when super layer is scaled
  • From: Rick Mann <email@hidden>
  • Date: Tue, 8 Jul 2008 22:53:49 -0700

I'm trying to use scaling of the superlayer to implement a zoom feature in my CAD app. The various elements in the canvas are drawn by a CALayer subclass I have, which overrides drawInContext:. After the zoom finishes animating, I want CA to call all the sublayer's drawInContext: methods as necessary to re-render the layer's contents. Is there any way to do this, short of keeping track of all the layers myself and calling setNeedsDisplay on them?

TIA,

--
Rick

_______________________________________________

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: Redrawing CALayer subclass when super layer is scaled
      • From: David Duncan <email@hidden>
  • Prev by Date: Re: How to indent in NSOutlineView?
  • Next by Date: Re: Calculating accurate bounds of stroked paths
  • Previous by thread: Re: Quick look preview multipage rich text -- NSPrintOperation inconsistency
  • Next by thread: Re: Redrawing CALayer subclass when super layer is scaled
  • Index(es):
    • Date
    • Thread