How do I programmatically change keyboard layout with Cocoa?
- by enchilada
How can I programmatically change the keyboard layout in Cocoa?
Assume I have, say, two active ones "Estonian" and "U.S." in the System Preferences (i.e. those two layouts visible in the keyboard layout menu bar).
So how would I read that those two are available, and how would I programmatically change between them?