I'm having problem to change a textfield input language source through codes !
All I want is to change the keyboard language to specific language when ever I enter a textfield.
I'm already searched here and just found some small guidance for Iphone but I'm working on OSx App.
Thank you guys helping me again !
EDIT:
well ! new approaches :
If I change my system preferences to appropriate language then most of the problems solved !
Date formatter become true and if I use this code snippet I can achieve correct language name ( before I just got en):
NSLocale * locale = [NSLocale currentLocale];
NSString * localLanguage = [locale objectForKey:NSLocaleLanguageCode] ;
NSLog (@"Language : %@", localLanguage);
BUT, I want to change the keyboard input language without changing the whole system preference. In fact, I want to change the Text Input service language to other installed language ( I have 2 ) when I enter into a special textfield ! ( is it clear ? )
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…