• 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
About the Primary Button problems in Cocoa Mouse Event Handling
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

About the Primary Button problems in Cocoa Mouse Event Handling


  • Subject: About the Primary Button problems in Cocoa Mouse Event Handling
  • From: "Celery01 Lin" <email@hidden>
  • Date: Wed, 2 Apr 2008 17:45:42 -0700

HI , all!
I have a question about how can we detect the primary button .
Cocoa Mouse Event handling gives us NSEvent . Though type of the
NSEvent ,we can know which mouse button is down, up or dragged ,and
then We can do something according to Leftmouse down or rightmouse
down . But if the user change the primary mouse button in the User
Preference . Dose that mean all our logic is reversed?
or Dose cocoa assume that Leftmouse is primary mouse and bind the
Leftmouse to primary mouse?
How can we determine which mouse button is primary mouse button in Cocoa?
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: About the Primary Button problems in Cocoa Mouse Event Handling
      • From: Ron Fleckner <email@hidden>
  • Prev by Date: Re: Name of NSTableView
  • Next by Date: Re: NSAssert and Unused Variable
  • Previous by thread: Re: NSAssert and Unused Variable
  • Next by thread: Re: About the Primary Button problems in Cocoa Mouse Event Handling
  • Index(es):
    • Date
    • Thread