• 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: "Shawn Erickson" <email@hidden>
  • Date: Thu, 8 Mar 2007 11:10:28 -0800

On 3/8/07, Andy Wiese <email@hidden> 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?

What does -[NSEvent characters] return you in this situation?

<http://developer.apple.com/documentation/Cocoa/Reference/ApplicationKit/Classes/NSEvent_Class/Reference/Reference.html#//apple_ref/occ/instm/NSEvent/characters>

-Shawn
_______________________________________________

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


  • Follow-Ups:
    • Re: keycode to unicode in NSEvent
      • From: Andy Wiese <email@hidden>
References: 
 >keycode to unicode in NSEvent (From: Andy Wiese <email@hidden>)

  • Prev by Date: Re: alloc init thread safe?
  • Next by Date: Re: keycode to unicode in NSEvent
  • Previous by thread: keycode to unicode in NSEvent
  • Next by thread: Re: keycode to unicode in NSEvent
  • Index(es):
    • Date
    • Thread