I am creating one cocoa application having wizard like structure.
All dialogs are subclass of NSViewController. Currently I am not able get keyboard events such as keyDown and keyUp..
Please help me to solve this problem....
Thanks in advance....
Override keyDown: and keyUp: method.
-(void)keyUp:(NSEvent*)event
-(void)keyDown:(NSEvent*)event
and
- (BOOL)acceptsFirstResponder {
return YES;
}
In subclass of NSViewController
you should refer Cocoa Event-Handling Guide .
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With