Getting Keyboard Events at Full Screen
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