Detecting mouse clicks in a PrefPane
Detecting mouse clicks in a PrefPane
- Subject: Detecting mouse clicks in a PrefPane
- From: Tim Conkling <email@hidden>
- Date: Thu, 4 Nov 2004 17:48:55 -0500
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
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden