• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: keycode to unicode in NSEvent
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: keycode to unicode in NSEvent


  • Subject: Re: keycode to unicode in NSEvent
  • From: John Stiles <email@hidden>
  • Date: Thu, 8 Mar 2007 11:17:59 -0800

I think NSEvent uses 16-bit unicode characters.
'A' is 65 in ASCII and in Unicode. (For the first 128 characters, ASCII and Unicode match.)


On Mar 8, 2007, at 11:06 AM, Andy Wiese wrote:

In NSEvent, how does keycode get converted to unicode?

In a simple test Cocoa-in-Carbon app, NSEvent key events appear with unicode char info, no prob.

The real Cocoa-in-Carbon application uses kEventTextInputUnicodeForKeyEvent in Carbon, to get input from a unicode keyboard, and there my NSEvent key events don't have unicode--I haven't determined if its ascii or just the platform MacRoman, but the 'A' key is just and 'A' char, if you know what I mean.

What have I likely done to screw up unicode input?


_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:
40blizzard.com


This email sent to email@hidden

_______________________________________________

Cocoa-dev mailing list (email@hidden)

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


References: 
 >keycode to unicode in NSEvent (From: Andy Wiese <email@hidden>)

  • Prev by Date: Re: keycode to unicode in NSEvent
  • Next by Date: Re: keycode to unicode in NSEvent
  • Previous by thread: Re: keycode to unicode in NSEvent
  • Next by thread: NSURL Containing RTSP and Password?
  • Index(es):
    • Date
    • Thread