|
|||||||
Время создания: 26.09.2011 21:50
Раздел: Компьютер - MacOs - Готовые решения
|
|||||||
|
|||||||
#import <Cocoa/Cocoa.h> // register for keys throughout the device... [NSEvent addGlobalMonitorForEventsMatchingMask:NSKeyDownMask handler:^(struct NSEvent *event){ NSString *chars = [[event characters] lowercaseString]; unichar character = [chars characterAtIndex:0]; NSLog(@"keydown globally! Which key? This key: %c", character); }]; Возможно struct надо будет убрать. |
|||||||
Так же в этом разделе:
|
|||||||
![]() |
|||||||
|
|||||||
|