On 10/30/08 2:51 PM, Paul Archibald said:
>-(IBAction) handleButton:(id)sender {
>
> if( [[NSApp currentEvent] modifierFlags] && NSAlternateKeyMask ) {
> // handle option + click
> }
> else {
> // do normal stuff
> }
>}
That's the correct approa
On 31 Oct 2008, at 8:51 am, Paul Archibald wrote:
but of course the currentEvent is not necessarily related to the
sender
I think you'll find it is. Only one event is handled per event loop,
and when the action method is called it's synchronous with that loop.
Thus the current event wil
Is there a simple way to detect that the option key was down when a
button was clicked? I have a method in my controller that gets the
button click, of course, and I have been trying this:
-(IBAction) handleButton:(id)sender {
if( [[NSApp currentEvent] modifierFlags] && NSAlternateKe