Re: Re: Keys down while dragging
Re: Re: Keys down while dragging
- Subject: Re: Re: Keys down while dragging
- From: "Adam Johnson" <email@hidden>
- Date: Fri, 27 Oct 2006 16:24:51 -0400
GetCurrentKeyModifiers() is exactly what i needed. Thanks!
On 10/26/06, Adam R. Maxwell <email@hidden> wrote:
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