Re: Switching international keyboards programmatically
Re: Switching international keyboards programmatically
- Subject: Re: Switching international keyboards programmatically
- From: Niko Matsakis <email@hidden>
- Date: Fri, 2 Dec 2005 11:22:34 +0100
Okay, I've done a little more snooping, and it appears that I need to
do something involving NSInputServers. Unfortunately, I can't quite
see what: making my own NSInputServer seems like overkill.
If I did so, however, the idea would be to have one which multiplexes
between several others depending on the desired language:
unfortunately, I can't even see how I might go about getting a list
of other installed NSInputServers.
Niko
On Dec 2, 2005, at 10:24 AM, Niko Matsakis wrote:
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
_______________________________________________
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