• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Detecting mouse clicks in a PrefPane
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: NSArrayController and retainCount
  • Next by Date: Can not call matOpen()
  • Previous by thread: RE: New Spotlight Info
  • Next by thread: Can not call matOpen()
  • Index(es):
    • Date
    • Thread