• 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
Getting Keyboard Events at Full Screen
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Getting Keyboard Events at Full Screen


  • Subject: Getting Keyboard Events at Full Screen
  • From: Sam Goldman <email@hidden>
  • Date: Thu, 22 Nov 2001 21:35:42 -0800

After following all the directions at cocoadevcentral.com (including the
part on how to get key events) I still can't grab them.

Before, I made a view and in the MyView.m file I included this:

- (void)awakeFromNib
{
[mainWindow setFirstResponder:self];
}

And it worked!

Now it's more complicated. Since I created the window programmatically, it
can't be an IBOutlet and I have to access it with [NSApp keyWindow].

Now I have subclassed NSWindow and overridden canBecomeKeyWindow and even
isKeyWindow, but still can't get it to work.

If you can help, but need the source, I'll gladly give it to you.

- Sam


  • Prev by Date: Re: What does P2-->P3 mean ?
  • Next by Date: Re: Variable Size Matrix
  • Previous by thread: Re: buddy windows
  • Next by thread: Re: Getting Keyboard Events at Full Screen
  • Index(es):
    • Date
    • Thread