• 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: detect command key status
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >detect command key status (From: Richard Salvatierra <email@hidden>)
 >Re: detect command key status (From: Richard Salvatierra <email@hidden>)

  • Prev by Date: Re: Simple drag problem
  • Next by Date: Getting NSMetadataQuery to sort properly
  • Previous by thread: Re: detect command key status
  • Next by thread: unmount device stop application
  • Index(es):
    • Date
    • Thread