RE: Detecting option key with button click
RE: Detecting option key with button click
- Subject: RE: Detecting option key with button click
- From: Anthony Duer <email@hidden>
- Date: Thu, 19 Sep 2002 23:10:58 -0700
I know this is probably in the archives or documentation somewhere
(but I
can9t find it). Can someone point me to the documentation on how to
detect
if a user had the option key pressed when a button was clicked. I9ve
looked
at NSEvent, keyDown etc but I9m not sure how to get the correct event
associated with the button click. Many thanks...
John
-(void) mouseDown: (NSEvent *)event
{
unsigned int flags = [event modifierFlags];
if(flags & NSAlternateKeyMask)
{
....
}
}
Enjoy. :)
~Anthony Duer
Orion Project
_______________________________________________
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.