Skip navigation.
 
mlDetecting mouse clicks in a PrefPane
FROM : Tim Conkling
DATE : Thu Nov 04 23:48:55 2004

I have a preference pane with some custom NSView objects in it that
respond to mouse clicks. I've overridden the following three methods in
my class:

-(void)mouseDown:(NSEvent *)event;
-(void)rightMouseDown:(NSEvent *)event;
-(void)otherMouseDown:(NSEvent *)event;

The -mouseDown method is called as expected (for left clicks only), the
-rightMouseDown method is never called, and the -otherMouseDown method
is called for all other mouse down events, but the -[NSEvent
buttonNumber] is returning the incorrect buttonNumber: my third button
is reported as button 2, and my fourth button is reported as button 3.

What could be happening?

Tim

Related mailsAuthorDate
No related mails found.