NSUserDefaults からキーボード情報が取れるという話。 こんな感じ。
AppleKeyboards = ( "ja_JP-Kana@sw=Kana-Flick;hw=US", "en_US@hw=US;sw=QWERTY", "emoji@sw=Emoji" );
試しにログに出してみた。キーボード以外にもいろいろ情報が取れる。
2011-12-27 23:38:56.509 TEST[2688:707] Defaults: { AppleITunesStoreItemKinds = ( wemix, tone, album, ringtone, "software-update", booklet, document, song, "podcast-episode", eBook, audiobook, artist, "itunes-u", movie, newsstand, mix, software, podcast ); AppleKeyboards = ( "ja_JP-Kana@sw=Kana-Flick;hw=US", "en_US@hw=US;sw=QWERTY", "emoji@sw=Emoji" ); AppleKeyboardsExpanded = 1; AppleLanguages = ( ja, en, fr, de, nl, it, es, pt, "pt-PT", da, fi, nb, sv, ko, "zh-Hans", "zh-Hant", ru, pl, tr, uk, ar, hr, cs, el, he, ro, sk, th, id, ms, "en-GB", ca, hu, vi ); AppleLocale = "ja_JP"; NSInterfaceStyle = macintosh; NSLanguages = ( ja, en, fr, de, nl, it, es, pt, "pt-PT", da, fi, nb, sv, ko, "zh-Hans", "zh-Hant", ru, pl, tr, uk, ar, hr, cs, el, he, ro, sk, th, id, ms, "en-GB", ca, hu, vi ); }