Re: virtual keycode to character

2009-04-30 Thread kvic...@pobox.com
At 7:22 PM -0500 4/29/09, Ken Thomases wrote: On Apr 29, 2009, at 6:40 PM, kvic...@pobox.com wrote: thank you. this solved my problem. You're welcome. I'm glad I could help. and (i think) you've helped again. thanx. (see below) and for the archives (to help anyone in the future), here

Re: virtual keycode to character

2009-04-29 Thread Ken Thomases
On Apr 29, 2009, at 6:40 PM, kvic...@pobox.com wrote: thank you. this solved my problem. You're welcome. I'm glad I could help. and for the archives (to help anyone in the future), here is my code: UInt32 deadKeyState = 0; UniCharCount actualCount = 0; UniChar baseChar; TISInputSourceRef

Re: virtual keycode to character

2009-04-29 Thread kvic...@pobox.com
ken, thank you. this solved my problem. and for the archives (to help anyone in the future), here is my code: UInt32 deadKeyState = 0; UniCharCount actualCount = 0; UniChar baseChar; TISInputSourceRef sourceRef = TISCopyCurrentKeyboardLayoutInputSource(); CFDataRef keyLayoutPtr = (CFDataRef)TISG

Re: virtual keycode to character

2009-04-27 Thread Ken Thomases
On Apr 27, 2009, at 7:46 PM, kvic...@pobox.com wrote: in my app, i allow the user to specify keyboard shortcuts for menu items (in a manner similar to xcode). for the string passed to - [MenuItem setKeyEquivalent], i pass the string obtained from the current event via [NSEvent charactersIgno

virtual keycode to character

2009-04-27 Thread kvic...@pobox.com
in my app, i allow the user to specify keyboard shortcuts for menu items (in a manner similar to xcode). for the string passed to -[MenuItem setKeyEquivalent], i pass the string obtained from the current event via [NSEvent charactersIgnoringModifiers]. this works fine almost all the time. howev