How do I programmatically change keyboard layout with Cocoa?

Posted by enchilada on Stack Overflow See other posts from Stack Overflow or by enchilada
Published on 2010-04-09T14:36:30Z Indexed on 2010/04/09 19:23 UTC
Read the original article Hit count: 385

Filed under:
|
|

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?

© Stack Overflow or respective owner

Related posts about cocoa

Related posts about objective-c