• 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
Switching international keyboards programmatically
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Switching international keyboards programmatically


  • Subject: Switching international keyboards programmatically
  • From: Niko Matsakis <email@hidden>
  • Date: Fri, 2 Dec 2005 10:24:11 +0100

I am writing a flashcard program. As such, when it prompts for words, it often expects the answer to be in a different language: for example, it might expect the Greek version of an English word.

At the moment, the user must manually switch keyboards (using the menu in the status bar, or Control-Space) to the right one before entering the answer. This can be quite annoying, especially because the program knows which language the answer is in, and could therefore switch the keyboard for you.

Unfortunately, I can't find anything suggesting how one can programmatically switch the current keyboard selection (*). I'm sure it can be done, because the current Cocoa widgets helpfully try to remember the last keyboard they used and switch things around: more often than not this simply confuses me, but at least it shows that the have some control over the matter.

Any help would be greatly appreciated!



Niko

(*) -- Not quite true. I found one tech note from 1993, and a section in the Carbon manual, but I can't seem to find the answer I'm looking for in those.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden
  • Follow-Ups:
    • Re: Switching international keyboards programmatically
      • From: Niko Matsakis <email@hidden>
  • Prev by Date: Transform and NSImageView
  • Next by Date: Rotate an image (was Re: Transform and NSImageView)
  • Previous by thread: Rotate an image (was Re: Transform and NSImageView)
  • Next by thread: Re: Switching international keyboards programmatically
  • Index(es):
    • Date
    • Thread