Re: Keys down while dragging
Re: Keys down while dragging
- Subject: Re: Keys down while dragging
- From: "Adam R. Maxwell" <email@hidden>
- Date: Thu, 26 Oct 2006 19:13:35 -0700
On Oct 26, 2006, at 17:08, m wrote:
On Oct 26, 2006, at 6:07 PM, Adam Johnson wrote:
I can't get the mouseDown and mouseUp events because it's not the
first responder when it's the recipient of a drag.
At any given time, you can get the current event by calling [NSApp
currentEvent].
That only works if your app is in the foreground. As someone else
pointed out, the correct API to use when you receive drags in the
background (which I believe is the OP's question) is
GetCurrentKeyModifiers().
Adam Maxwell
_______________________________________________
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