• 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: key modifiers change during drag
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: key modifiers change during drag


  • Subject: Re: key modifiers change during drag
  • From: Greg Titus <email@hidden>
  • Date: Wed, 8 Oct 2003 17:46:25 -0700

On Wednesday, October 8, 2003, at 05:00 PM, Seth Delackner wrote:

On Wed, Oct 08, 2003 at 07:08:33PM -0400, robert l clair wrote:
Use [theEvent modifierFlags] to get the mask of modifier keys
on mouseDown, hold on to it , do [theEvent modifierFlags] in each
drag event and check for changes ? I haven't done this but the docs do
not say that modifierFlags is restricted to Key events and the header files
says it is valid for all events.

Yes, but you receive no events at all when the user has the
mouse down, has dragged some, and now just presses a
modifier. You receive an event next time the user nudges
the mouse. The finder's drag behavior is clearly not thusly
restricted.

You do if you have registered for the Flags Changed event type. You'll get a flags changed event when the modifier keys change.

Hope this helps,
- Greg
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: key modifiers change during drag (From: Seth Delackner <email@hidden>)

  • Prev by Date: Re: Multiple Nibs help?
  • Next by Date: Closing Distributed Object connections
  • Previous by thread: Re: key modifiers change during drag
  • Next by thread: Dock Icon position
  • Index(es):
    • Date
    • Thread