• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Getting keyDowns
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting keyDowns


  • Subject: Re: Getting keyDowns
  • From: John Stringham <email@hidden>
  • Date: Mon, 27 Aug 2001 08:34:25 -0700

Whoops! Not sure how that @end got in there. No, those two methods should both be in the KeyHandler's .m file (with appropriate headers to match as well.)

On Sunday, August 26, 2001, at 03:34 PM, Rosyna wrote:

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


References: 
 >Re: Getting keyDowns (From: Rosyna <email@hidden>)

  • Prev by Date: Re: Cocoa patterns?
  • Next by Date: Re: Testing if a folder is a bundle
  • Previous by thread: Re: Getting keyDowns
  • Next by thread: Re: Getting keyDowns
  • Index(es):
    • Date
    • Thread