Re: Core Animation geometry, layer hosting, and resolution independence

2008-03-12 Thread Nathan Vander Wilt
--- Jens Alfke <[EMAIL PROTECTED]> escribió: > > On 12 Mar '08, at 2:49 PM, Nathan Vander Wilt wrote: > > > I don't understand what this "base" coordinate > system > > is (not the window's, otherwise the conversions > would > > likely be offset by the view's position therein, > > right?). But w

Re: Core Animation geometry, layer hosting, and resolution independence

2008-03-12 Thread Quincey Morris
On Mar 12, 2008, at 14:49, Nathan Vander Wilt wrote: I don't understand what this "base" coordinate system is (not the window's, otherwise the conversions would likely be offset by the view's position therein, right?). But whatever it is, it seems to be shared by the CALayer. I'd appreciate a g

Re: Core Animation geometry, layer hosting, and resolution independence

2008-03-12 Thread Jens Alfke
On 12 Mar '08, at 2:49 PM, Nathan Vander Wilt wrote: I don't understand what this "base" coordinate system is (not the window's, otherwise the conversions would likely be offset by the view's position therein, right?). But whatever it is, it seems to be shared by the CALayer. The Cocoa Drawi

Re: Core Animation geometry, layer hosting, and resolution independence

2008-03-12 Thread Jens Alfke
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

Re: Core Animation geometry, layer hosting, and resolution independence

2008-03-12 Thread Nathan Vander Wilt
> > CALayers don't have this bounds/frame distinction > > They do, actually. The bounds is the internal view > of the coordinate > system, and the frame is the external view. At first this sounded incorrect, because it's emphasized that frame is just a function of other propertiesbut I was

Re: Core Animation geometry, layer hosting, and resolution independence

2008-03-12 Thread Nathan Vander Wilt
--- Quincey Morris <[EMAIL PROTECTED]> escribió: > On Mar 12, 2008, at 13:13, Jens Alfke wrote: > > > On 12 Mar '08, at 12:13 PM, Nathan Vander Wilt > wrote: > > > >> I want to be able to convert a mouse > >> coordinate into a point suitable for > -hitTest:'ing on > >> my root layer. I can convert

Re: Core Animation geometry, layer hosting, and resolution independence

2008-03-12 Thread Quincey Morris
On Mar 12, 2008, at 13:13, Jens Alfke wrote: On 12 Mar '08, at 12:13 PM, Nathan Vander Wilt wrote: I want to be able to convert a mouse coordinate into a point suitable for -hitTest:'ing on my root layer. I can convert from the mouse coordinates to the view's coordinates, but then I am not su

Re: Core Animation geometry, layer hosting, and resolution independence

2008-03-12 Thread Jens Alfke
On 12 Mar '08, at 12:13 PM, Nathan Vander Wilt wrote: I want to be able to convert a mouse coordinate into a point suitable for -hitTest:'ing on my root layer. I can convert from the mouse coordinates to the view's coordinates, but then I am not sure how to proceed. There doesn't seem to be a

Core Animation geometry, layer hosting, and resolution independence

2008-03-12 Thread Nathan Vander Wilt
I am having trouble understanding how Core Animation geometry interacts with NSView geometry in a layer-hosting situation. I have an NSView that hosts a root layer, and it has two sublayers that I need the user to be able to drag each around. I want to be able to convert a mouse coordinate into a