• 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: modifier key query
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: modifier key query


  • Subject: Re: modifier key query
  • From: Gerd Knops <email@hidden>
  • Date: Fri, 26 Dec 2008 09:57:40 -0600


On Dec 26, 2008, at 2:04 AM, Wesley Smith wrote:

Is there a way to know if a modifier key (shift, ctrl, option, cmd,
etc) is pressed?  Obviously, there's this:
NSUInteger modifierFlags = [theEvent modifierFlags];

but what if you need to know this information independent of an
NSEvent?  Anyway to get it?  So far I haven't seen anything
encouraging in the docs.

Depending on the context [[NSApp currentEvent]modifierFlags] may work for you.


Gerd

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >modifier key query (From: "Wesley Smith" <email@hidden>)

  • Prev by Date: Re: Memory Management question
  • Next by Date: Re: Memory Management question
  • Previous by thread: Re: modifier key query
  • Next by thread: Re: modifier key query
  • Index(es):
    • Date
    • Thread