• 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
Detecting key down in application:OpenFile:
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Detecting key down in application:OpenFile:


  • Subject: Detecting key down in application:OpenFile:
  • From: John Timmer <email@hidden>
  • Date: Sun, 11 Dec 2005 22:33:44 -0500
  • Thread-topic: Detecting key down in application:OpenFile:

Is it all possible to detect a key down mask when a file is dragged to your
application icon? In the " application:OpenFile:" method, I've got the
following code:

NSEvent *keyCheck = [theApplication currentEvent];

if ([keyCheck modifierFlags] & NSShiftKeyMask)
[self handleAlternate];


But it doesn't seem to register the shift key consistently, either in the
debugger, or via logging. Any suggestions would be greatly appreciated.

JT


_______________________________________________
Ars Technica science writer, among other things
http://arstechnica.com/journals/science.ars


_______________________________________________
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: Detecting key down in application:OpenFile:
      • From: Ondra Cada <email@hidden>
  • Prev by Date: Re: socket spy
  • Next by Date: Re: NSObject Exercise comments?
  • Previous by thread: Re: socket spy
  • Next by thread: Re: Detecting key down in application:OpenFile:
  • Index(es):
    • Date
    • Thread