Re: Getting the state of the option key...
Re: Getting the state of the option key...
- Subject: Re: Getting the state of the option key...
- From: Ondra Cada <email@hidden>
- Date: Fri, 30 Aug 2002 18:26:23 +0200
On Friday, August 30, 2002, at 01:30 , Finlay Dobbie wrote:
At Application launch I need to check to see if the option key was
held down by the user. I would think this is simple enough but am unable
to find anything in the Docs as to how to get the state of a key or what
messages to listen for. I am hoping I don't have to go to Carbon to do
this.
[[NSEvent currentEvent] modifierFlags] & NSAlternateKeyMask
or something
The receiver of currentEvent is the application (or a window)... and it
would, at the launch time, return zero regardless the mask and keys. Alas,
the only answer's somewhere in Carbon.
---
Ondra Hada
OCSoftware: email@hidden
http://www.ocs.cz
private email@hidden
http://www.ocs.cz/oc
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.