FROM : luc BARREDA
DATE : Tue Jan 08 22:53:05 2008
Hi,
I've a strange problem under 10.5,
I subclassed a NSView and declared in it :
- (void)mouseDown:(NSEvent *)theEvent
{ NSPoint p;
p = [theEvent locationInWindow];
}
Under the debugger, the event is trapped and the function gets called,
theEvent shows a correct mouseDownEvent type (1),
the protected '_location' NSEvent member contains the right mouse
coord, window is not nil, everything is OK
BUT locationInWindow always return (0,0)
I browsed the mailing list before posting and tried to make the same
thing in a window subclassing, same result
Has somebody a clue before I loose all my hairs? I'd appreciate a lot
Regards
Luc B
DATE : Tue Jan 08 22:53:05 2008
Hi,
I've a strange problem under 10.5,
I subclassed a NSView and declared in it :
- (void)mouseDown:(NSEvent *)theEvent
{ NSPoint p;
p = [theEvent locationInWindow];
}
Under the debugger, the event is trapped and the function gets called,
theEvent shows a correct mouseDownEvent type (1),
the protected '_location' NSEvent member contains the right mouse
coord, window is not nil, everything is OK
BUT locationInWindow always return (0,0)
I browsed the mailing list before posting and tried to make the same
thing in a window subclassing, same result
Has somebody a clue before I loose all my hairs? I'd appreciate a lot
Regards
Luc B
| Related mails | Author | Date |
|---|---|---|
| luc BARREDA | Jan 8, 22:53 | |
| glenn andreas | Jan 8, 23:21 | |
| John Stiles | Jan 8, 23:36 |






Cocoa mail archive

