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

Getting the state of the option key...


  • Subject: Getting the state of the option key...
  • From: Scott Ryder <email@hidden>
  • Date: Wed, 28 Aug 2002 12:37:28 -0700

All,

I need a little bit of help. Here is what I am trying to do.

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.

I have played with a subclass of NSWindow and I get key downs but
1) Not for modifiers (option, cntrl ....)
2) Not if the key was held during launch
3) Not until after my applicaitonDidFinishLaunching method has executed.

Any thoughts out there on how to check to see if option is down during/between
awakeFromNib

-or-

applicationDidFinishLaunching


Thanks
--Scott
_______________________________________________
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: Finlay Dobbie <email@hidden>
  • Prev by Date: Re: Tracking files the right way
  • Next by Date: Re: NSURL access?
  • Previous by thread: Re: Tracking files the right way
  • Next by thread: Re: Getting the state of the option key...
  • Index(es):
    • Date
    • Thread