• 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: Checking if a modifier key is pressed
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Checking if a modifier key is pressed


  • Subject: Re: Checking if a modifier key is pressed
  • From: "M. Uli Kusterer" <email@hidden>
  • Date: Mon, 4 Aug 2003 17:08:42 +0200

At 14:28 Uhr +0200 04.08.2003, Jesus De Meyer wrote:
I would like to check if a modifier key is pressed before I continue with a certain method. Normally this would be done inside the keyDown method, but I'm not using that.

There should be methods in NSEvent or NSApplication that let you do that. At worst, fetch the current event and look at its modifiers field. But I'm pretty sure I saw something in an about box sample (<http://www.cocoadevcentral.com> ?) that looked like a dedicated method to get the modifiers.
--
Cheers,
M. Uli Kusterer
------------------------------------------------------------
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de
_______________________________________________
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.
References: 
 >Checking if a modifier key is pressed (From: Jesus De Meyer <email@hidden>)

  • Prev by Date: Re: break, continue, goto
  • Next by Date: Re: format specifiers
  • Previous by thread: Re: Checking if a modifier key is pressed
  • Next by thread: QuickTime stops to play
  • Index(es):
    • Date
    • Thread