On 29/11/2008, at 4:01 PM, Christian Graus wrote:
NSPoint pt = [NSEvent mouseLocation];
NSRect rcTV = [tableView bounds];
pt = [tableView convertPoint:pt fromView:nil];
So, now the first line gives me the mouse position on the screen. The
second gives me the bounds of my control, becaus
OK, I managed to find the answer to my main question on google ( not for
want of trying previously ).
NSPoint pt = [NSEvent mouseLocation];
NSRect rcTV = [tableView bounds];
pt = [tableView convertPoint:pt fromView:nil];
So, now the first line gives me the mouse position on the screen. The