533Getting Mouse Position in NSWindow
- (void)mouseDown:(NSEvent *)theEvent {
NSPoint mousePoint = [theEvent locationInWindow];
//NSPoint localPoint = [self convertPoint:mousePoint fromView:nil];
CALayer *hitLayer = [[self layer] hitTest:mousePoint];
NSLog(@"MainView, hitLayer: %@", hitLayer.name);
NSLog(@"mousePoint %f %f", mousePoint.x, mousePoint.y);
}