Re: Getting keyDown for option key
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.