Re: [newbie] Hot Key
Re: [newbie] Hot Key
- Subject: Re: [newbie] Hot Key
- From: Lance Bland <email@hidden>
- Date: Tue, 2 Jul 2002 13:16:10 -0400
On Tuesday, July 2, 2002, at 12:55 PM, Tom Riddle wrote:
Reports me no errors, but, I've got no idea how to check the boolean in
my
'.m' file. Perhaps you can help me.
Tom-
if([NSEvent isOptionKeyDown])
{
// do my option processing
}
but, if I understand your problem, it would probably be better to do
this:
#import <Cocoa/Cocoa.h>
if([[NSApp currentEvent] modifierFlags] & NSAlternateKeyMask)
{
// do my option processing
}
-lance
------------------------------------
Lance Bland
mailto:email@hidden
web charts at
http://www.vvi.com/products/chart
_______________________________________________
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.