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
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