Re: Getting keyDowns
Re: Getting keyDowns
- Subject: Re: Getting keyDowns
- From: Rosyna <email@hidden>
- Date: Sun, 26 Aug 2001 15:34:06 -0700
Did the first, I should put keyDown AFTER the KeyHandler class?
Ack, at 8/26/01, John Stringham said:
You could also make aforementioned KeyHandler class a subclass of
NSResponder and implement the following:
- (void)awakeFromNib
{
if (![theMainWindow makeFirstResponder:self])
NSLog(@"Failed");
}
@end
- (void)keyDown:(NSEvent *)theEvent
{
// Check keys here.
}
Of course this could be a big "no-no" but it worked for me.
--
Sincerely,
Rosyna Keller
Technical Support/Holy Knight/Always needs a hug
Unsanity: Unsane Tools for Insane People