Switching international keyboards programmatically
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