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

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


  • Follow-Ups:
    • Re: Redrawing CALayer subclass when super layer is scaled
      • From: Rick Mann <email@hidden>
    • Re: Redrawing CALayer subclass when super layer is scaled
      • From: Rick Mann <email@hidden>
References: 
 >Redrawing CALayer subclass when super layer is scaled (From: Rick Mann <email@hidden>)
 >Re: Redrawing CALayer subclass when super layer is scaled (From: David Duncan <email@hidden>)
 >Re: Redrawing CALayer subclass when super layer is scaled (From: Rick Mann <email@hidden>)

  • Prev by Date: Re: Does this caution need fixed? (newb)
  • Next by Date: Re: Making a text cell in a table editable
  • Previous by thread: Re: Redrawing CALayer subclass when super layer is scaled
  • Next by thread: Re: Redrawing CALayer subclass when super layer is scaled
  • Index(es):
    • Date
    • Thread