开发者

How do I switch keyboard layout programmatically in MacOS X?

开发者 https://www.devze.com 2022-12-30 18:39 出处:网络
how do I switch keyboard layout (AKA input source) programmatically in MacOS X in a Cocoa/Objective C prog开发者_如何学Pythonram? Thanks in advance.I\'ve not had occasion to try this, but I think you

how do I switch keyboard layout (AKA input source) programmatically in MacOS X in a Cocoa/Objective C prog开发者_如何学Pythonram? Thanks in advance.


I've not had occasion to try this, but I think you want the functions in text input source services. Note that these are Carbon functions, though usable from Cocoa -- you'll need to add the Carbon framework to your project in order to use them.

0

精彩评论

暂无评论...
验证码 换一张
取 消