• 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: Getting the state of the option key...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting the state of the option key...


  • Subject: Re: Getting the state of the option key...
  • From: Finlay Dobbie <email@hidden>
  • Date: Fri, 30 Aug 2002 00:30:31 +0100

On Wednesday, August 28, 2002, at 08:37 pm, Scott Ryder 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 mask may be wrong, I'm typing this from memory, see NSEvent.h to make sure :)

-- Finlay
_______________________________________________
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.

  • Follow-Ups:
    • Re: Getting the state of the option key...
      • From: Ondra Cada <email@hidden>
References: 
 >Getting the state of the option key... (From: Scott Ryder <email@hidden>)

  • Prev by Date: Re: NSURL Access and .Mac accounts
  • Next by Date: Re: Getting the state of the option key...
  • Previous by thread: Getting the state of the option key...
  • Next by thread: Re: Getting the state of the option key...
  • Index(es):
    • Date
    • Thread