• 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: Andy Wiese <email@hidden>
  • Date: Thu, 8 Mar 2007 13:32:28 -0600

Thanks for the suggestion; I'm away from that code at the moment but I'll check on it later.

The result of the problem is that a text field from the same nib file, used in the two different apps.. one shows arabic characters when I type in an arabic keyboard, and the other shows ascii-ish characters (arabic keyboard), but other carbon controls responding the the carbon textinput events do have the arabic. So I think that something that works 'out of the box' in a typical cocoa application has been interfered with by my carbon handlers. I haven't found any docs on this and don't know where to start.

On Mar 8, 2007, at 1:10 PM, Shawn Erickson wrote:

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


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

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