Skip navigation.
 
mlRe: Core Animation geometry, layer hosting, and resolution independence
FROM : Jens Alfke
DATE : Wed Mar 12 23:26:55 2008

On 12 Mar '08, at 3:06 PM, Nathan Vander Wilt wrote:

> When one draws a rectangle in a CALayer delegate, and
> the -drawLayer:: concatenates (and/or sets?) its own
> transform before drawing, when the layer has a
> transform, and the root parent layer has both a
> transform and a sublayer transform, and the host
> NSView has different bounds than frame, and there is
> resolution independence / interface scaling.....*deep
> breath*.....


This is starting to sound like "Fox In Socks"[1]:
"When tweetle beetles battle with paddles in a puddle,
they call it a tweetle beetle puddle paddle battle.
AND...
When beetles battle beetles in a puddle paddle battle
and the beetle battle puddle is a puddle in a bottle...
...they call this a tweetle beetle bottle puddle paddle battle muddle.
AND...
When beetles fight these battles in a bottle with their paddles
and the bottle's on a poodle and the poodle's eating noodles...
...they call this a muddle puddle tweetle poodle beetle noodle
bottle paddle battle."

Coordinate transformations give me fits, too. I've was having "fun" 
yesterday porting some of my code to an, uh, superficially very 
similar platform, whose coordinate system is for some reason upside-
down (or is that right-side-up?) compared to AppKit's. :-P

—Jens

[1] http://ai.eecs.umich.edu/people/dreeves/Fox-In-Socks.txt