FROM : Keith Duncan
DATE : Wed Jan 02 21:59:43 2008
This seems like it should be trivial but I can't find an elegant
solution. I need to detect the space bar being pushed.
I've searched the archives and other than performing !
NSEqualRanges([[event characters] rangeOfString:@" "], (NSRange){0,
0}) there doesn't seem to be any other way of reliably detecting it.
There is no unicode defined for it in the NSEvent header and there is
no NSResponder method either. There must be a better way of doing this.
Keith
DATE : Wed Jan 02 21:59:43 2008
This seems like it should be trivial but I can't find an elegant
solution. I need to detect the space bar being pushed.
I've searched the archives and other than performing !
NSEqualRanges([[event characters] rangeOfString:@" "], (NSRange){0,
0}) there doesn't seem to be any other way of reliably detecting it.
There is no unicode defined for it in the NSEvent header and there is
no NSResponder method either. There must be a better way of doing this.
Keith
| Related mails | Author | Date |
|---|---|---|
| Keith Duncan | Jan 2, 21:59 | |
| j o a r | Jan 2, 22:11 |






Cocoa mail archive

