• 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
How to get Input Menu setting + key characters?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to get Input Menu setting + key characters?


  • Subject: How to get Input Menu setting + key characters?
  • From: Christopher Corbell <email@hidden>
  • Date: Mon, 19 May 2003 20:51:18 -0700

I'm internationalizing an app that lets the user map keys on the physical
keyboard for custom purposes (not text input). The keyboard is displayed
graphically in a manner similar to KeyCaps.app. Like KeyCaps, I want to
update when the user selects a different input setting from the international
Input Menu, and also generally honor the system preference setting for this
(which may or may not be the same as the preferred language).

For this I think I need to do two things:
1.) determine the input setting. How is this done for Cocoa / Jaguar?

2.) best-case, be able to find out the current character (single or double-byte)
mapped to a given keyboard code. I see different character codes come in
from the same key-code in NSEvent when I change the input setting, but can
I find out this key-char mapping without waiting for an event? (Or do I need
to build my own table and build resources for all these mappings?)

Thanks in advance for help,

Christopher
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: NSURL / NSURLHandle loading problem
  • Next by Date: Killing a thread by force
  • Previous by thread: Re: the art of #includes
  • Next by thread: Killing a thread by force
  • Index(es):
    • Date
    • Thread