Re: Size of Core Animation Layer

2010-01-28 Thread vincent habchi
Le 28 janv. 2010 à 08:43, K.Darcy Otto a écrit : NSRect rect = NSRectFromCGRect([hitLayer frame]); float width = rect.size.width; That is, it returns a width, but not the width in the current window coordinates. Any ideas? Thanks. What do you mean by not the width in the current window

Size of Core Animation Layer

2010-01-27 Thread K . Darcy Otto
I'm having some difficulties translating between a Core Animation layer size, and the size of that layer in the NSView subclass I'm using. I can identify the layer from a mouseclick without difficulty, using the following code: -(void)mouseDown:(NSEvent *)theEvent { NSPoint translated