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

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
References: 
 >Switching international keyboards programmatically (From: Niko Matsakis <email@hidden>)

  • Prev by Date: Re: Is Apple's singleton sample code correct?
  • Next by Date: Re: NSSearchField _sendPartialString exception
  • Previous by thread: Switching international keyboards programmatically
  • Next by thread: Re: Switching international keyboards programmatically
  • Index(es):
    • Date
    • Thread