• 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
Re: Shift key state on mouse motion or drag etc..
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Shift key state on mouse motion or drag etc..


  • Subject: Re: Shift key state on mouse motion or drag etc..
  • From: "John C. Randolph" <email@hidden>
  • Date: Thu, 29 Sep 2005 14:12:23 -0700


On Sep 29, 2005, at 2:01 PM, Brian O'Brien wrote:

How do you know if the shift key was pressed while the mouse was being dragged?
I believe its in the flags that come with the NSEvent. but how should you read the value and interpret it?

if ([theEvent modifierFlags] & NSShiftKeyMask) { // the shift key is down }


-jcr

John C. Randolph <email@hidden> (408) 914-0013
Roaming Cocoa Engineer,
Available for your projects at great Expense and Inconvenience.



_______________________________________________
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


References: 
 >Shift key state on mouse motion or drag etc.. (From: "Brian O'Brien" <email@hidden>)

  • Prev by Date: Re: NSEnumerator and the missing peek method
  • Next by Date: Re: String->HTML
  • Previous by thread: Shift key state on mouse motion or drag etc..
  • Next by thread: window won't become main or key programmatically
  • Index(es):
    • Date
    • Thread