Below is the sample code.
- (void) keyDown: (NSEvent *) event
{
NSString *chars = [event characters];
unichar character = [chars characterAtIndex: 0];
if (character == 27) {
NSLog (@"ESCAPE!");
}
}
Should I need to set any delegate in InterfaceBuilder or any kinda binding??
Help Appreciated...