Programmatically switch an input method on Mavericks
Hello,
I'm having a problem creating a program that switches an input method to a specified one. I have been doing some research for a while and have found this answer on the support community, but it doesn't seem to work on Mavericks: https://discussions.apple.com/thread/4032238?answerId=18719398022#18719398022. The indicator switches normally but it doesn't enable the IM (adding TISEnableInputMethod doesn't help). The IM gets enabled only when I switch out of the document and then back in.
The question on stackoverflow doesn't get any answers too: http://stackoverflow.com/questions/22885767/how-to-programmatically-switch-an-in put-method-on-os-x
Did I hit a bug in the OS or is it something that I'm missing?
OS X Mavericks (10.9.2)