• 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 keyDown for option key
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting keyDown for option key


  • Subject: Re: Getting keyDown for option key
  • From: Allan Odgaard <email@hidden>
  • Date: Tue, 20 Apr 2004 21:34:51 +0200

On 20. Apr 2004, at 20:42, Darrin Cardani wrote:

I would like to change the cursor when it's over a particular window and the user presses the option key. I have a -keyDown: method in the window controller, but it doesn't get called when the user only presses the option key. What do I need to do to get that key down event?


- (void)flagsChanged:(NSEvent *)theEvent

Informs the receiver that the user has pressed or released
a modifier key (Shift, Control, and so on) specified by
theEvent. NSResponders implementation simply passes this
message to the next responder.






** Cocoa FAQ: <http://www.alastairs-place.net/cocoa/faq.txt> **
_______________________________________________
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: 
 >Getting keyDown for option key (From: Darrin Cardani <email@hidden>)

  • Prev by Date: RE: [little OT] Licensing/Implementing in Cocoa/Obj-C
  • Next by Date: Re: Application icon
  • Previous by thread: Getting keyDown for option key
  • Next by thread: Re: Getting keyDown for option key
  • Index(es):
    • Date
    • Thread