• 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: Keys down while dragging
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Keys down while dragging


  • Subject: Re: Keys down while dragging
  • From: Peter Schart <email@hidden>
  • Date: Wed, 25 Oct 2006 10:32:30 -0500

On Oct 24, 2006, at 9:07 PM, Murat Konar wrote:


On Oct 24, 2006, at 6:59 PM, Adam Johnson wrote:

I would like to implement a drag-and-drop where holding the Shift key
does something different than a normal drag.  How can I get the state
of the modifier keys without being the active application?  Any help
would be greatly appreciated.

Does something different when?

If its when the mouse is released, you can just examine the mouseUp event's modifier flags.


I think what he is asking -- and it is something I, too, would like to learn how to do -- is how to change the cursor in the midst of a drag (i.e.: before the mouseUp). Something like when you are dragging a file in Finder and you press Option the cursor gets the little green '+' (copy instead of move) badge, or if you press Command +Option it changes to the curved arrow "Make alias" cursor, etc...

Apologies, Adam, if I'm putting bytes in your buffer, but as I mentioned, I've been wondering about this myself.

pete

Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
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

  • Follow-Ups:
    • Re: Keys down while dragging
      • From: PGM <email@hidden>
References: 
 >Keys down while dragging (From: "Adam Johnson" <email@hidden>)
 >Re: Keys down while dragging (From: Murat Konar <email@hidden>)

  • Prev by Date: Re: NSSplitView iTunes Like
  • Next by Date: NSTimer question: How to fire at second 00, 05, 10 etc ?
  • Previous by thread: Re: Keys down while dragging
  • Next by thread: Re: Keys down while dragging
  • Index(es):
    • Date
    • Thread