Re: Keys down while dragging
Re: Keys down while dragging
- Subject: Re: Keys down while dragging
- From: PGM <email@hidden>
- Date: Wed, 25 Oct 2006 19:32:54 -0400
http://www.cocoabuilder.com/archive/message/cocoa/2002/6/19/51217
On 25-Oct-06, at 11:32 AM, Peter Schart wrote:
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 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40sympatico.ca
This email sent to email@hidden
_______________________________________________
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