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

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


References: 
 >Keys down while dragging (From: "Adam Johnson" <email@hidden>)
 >Re: Keys down while dragging (From: Murat Konar <email@hidden>)
 >Re: Re: Keys down while dragging (From: "Adam Johnson" <email@hidden>)
 >Re: Keys down while dragging (From: m <email@hidden>)
 >Re: Keys down while dragging (From: "Adam R. Maxwell" <email@hidden>)

  • Prev by Date: Best way to implement LRU cache?
  • Next by Date: Best practice question
  • Previous by thread: Re: Keys down while dragging
  • Next by thread: Both view and subview receive mouse events?
  • Index(es):
    • Date
    • Thread