Re: Redrawing CALayer subclass when super layer is scaled
Re: Redrawing CALayer subclass when super layer is scaled
- Subject: Re: Redrawing CALayer subclass when super layer is scaled
- From: David Duncan <email@hidden>
- Date: Wed, 9 Jul 2008 12:59:33 -0700
On Jul 9, 2008, at 11:09 AM, Rick Mann wrote:
My CAD program has a number of "parts" laid out on the canvas at the
whim of the user. These parts are interconnected by the user with
lines comprised of a series of orthogonal line segments (it's
schematic capture CAD). There is one instance of my CALayer subclass
for each of these parts, and I'm thinking I'll use one for each
connected set of line segments (not sure yet).
Given what it sounds like your content is, I might consider putting
the whole canvas on a single or small set of tiled layers (they can be
unbounded in size).
Are you suggesting that each of these should subclass CATiledLayer
instead (or provide a delegate)? I was setting the transform on the
window's (root?) layer. Will that result in tile sublayers redrawing
their content?
A tiled layer will trigger redraws when it detects that higher (or
lower) resolution content is available. It caches this drawing as
well, so you won't get called to redraw just because of a resize of
content at that level is already available.
--
David Duncan
Apple DTS Animation and Printing
email@hidden
_______________________________________________
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