Re: detect command key status
Re: detect command key status
- Subject: Re: detect command key status
- From: j o a r <email@hidden>
- Date: Mon, 27 Jun 2005 17:29:25 +0200
This is a bitmask, so you should be using something like this:
BOOL hasCmdKeyMask = ((theEvent modifierflag] &
NSCommandKeyMask) != 0);
(You might be noticing the effect of the "defice-dependent bits". See
the docs for more info.
On Mac OS X 10.4 you can use the NSDeviceIndependentModifierFlagsMask
to work around that particular problem, if it happens to be what is
confusing in this case.)
j o a r
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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