My App must receive all input sources like Mac OS tool(with flag) at menubar. I have read Apple documentation, and I understood: I must use Carbon method TISCreateInputSourceList() for it. For the first parameter I use a dictionary like this:
NSDictionary *props = [NSDictionary dictionaryWithObjectsAndKeys:
[NSNumber numberWithBool:YES], kTISPropertyInputSourceIsEnabled,
[NSNumber numberWithBool:YES], kTISPropertyInputSourceIsSelectCapable,
kTISTypeKeyboardLayout, kTISPropertyInputSourceType,
nil];
and for the second parameter FALSE.
That works fine, but I can't see in my returned array the groups(categories) of input sources like Kotoeri, Tamil Input Method, Vietnamese UniKey, Hangul, Chinese Traditional, Chinese Simplified. The system tool shows only children of categories that I have listed. I need the same in my App.
How must I to change my dictionary to receive what I need? Or any other actions? Thanks for any help!
No comments:
Post a Comment