[newbie] Hot Key
[newbie] Hot Key
- Subject: [newbie] Hot Key
- From: Tom Riddle <email@hidden>
- Date: Tue, 02 Jul 2002 18:55:29 +0200
Hello List!
I have implemented this code in my header file:
#import <Carbon/Carbon.h>
@interface NSEvent (ModifierKeys)
+ (BOOL) isOptionKeyDown;
@end
@implementation NSEvent (ModifierKeys)
+ (BOOL) isOptionKeyDown
{
return (GetCurrentKeyModifiers() & optionKey) != 0;
}
@end
Reports me no errors, but, I've got no idea how to check the boolean in my
'.m' file. Perhaps you can help me.
Regards, Tom
_______________________________________________
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.