Detecting key down in application:OpenFile:
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