Space Bar Event
Space Bar Event
- Subject: Space Bar Event
- From: Keith Duncan <email@hidden>
- Date: Wed, 2 Jan 2008 20:59:43 +0000
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
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden