FROM : Todd Ransom
DATE : Thu Nov 04 19:16:01 2004
I had problems getting [NSEvent characters] to work properly in my
situation. It's been awhile since I wrote that so I don't remember
exactly what the issue was. Maybe someone else on the list can talk
about the differences.
TR
On Nov 4, 2004, at 10:21 AM, Will Mason wrote:
>>> unsigned short keyPress = [event keyCode];
>
> If you take the key code from the event, you're creating a big headache
> for yourself, since key codes are hardware dependent. Are you sure you
> want to keep track of the key code for your desired key presses for
> every keyboard that exists on every Mac in the world? Wouldn't it be
> better to let Cocoa do that for you, and use the [NSEvent characters]
> message instead? That way you get to work with hardware independent
> Unicode values.
>
> Just a thought,
> Will
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Cocoa-dev mailing list (<email_removed>)
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/cocoa-dev/<email_removed>
>
> This email sent to <email_removed>
DATE : Thu Nov 04 19:16:01 2004
I had problems getting [NSEvent characters] to work properly in my
situation. It's been awhile since I wrote that so I don't remember
exactly what the issue was. Maybe someone else on the list can talk
about the differences.
TR
On Nov 4, 2004, at 10:21 AM, Will Mason wrote:
>>> unsigned short keyPress = [event keyCode];
>
> If you take the key code from the event, you're creating a big headache
> for yourself, since key codes are hardware dependent. Are you sure you
> want to keep track of the key code for your desired key presses for
> every keyboard that exists on every Mac in the world? Wouldn't it be
> better to let Cocoa do that for you, and use the [NSEvent characters]
> message instead? That way you get to work with hardware independent
> Unicode values.
>
> Just a thought,
> Will
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Cocoa-dev mailing list (<email_removed>)
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/cocoa-dev/<email_removed>
>
> This email sent to <email_removed>
| Related mails | Author | Date |
|---|---|---|
| Salánki Benjámin | Nov 4, 13:23 | |
| Todd Ransom | Nov 4, 16:46 | |
| August Trometer | Nov 4, 17:40 | |
| Will Mason | Nov 4, 18:21 | |
| Todd Ransom | Nov 4, 19:16 | |
| Harilaos Skiadas | Nov 4, 19:41 |






Cocoa mail archive

