続:Input Method Kit

http://developer.apple.com/releasenotes/Cocoa/RN-InputMethodKit/index.html

Every input method creates an IMKServer object in its main function. One of the parameters for the IMKServer object is a connection name. The IMKServer object uses this name to create an NSConnection object that clients use to connect to the input method. The only client in Mac OS X v10.5 is the Text Services Manager.

昨日の時点では IMKInputSession と IMKInputController と IMKServer が同じプロセス空間でやりとりすると思っていたのですが、どうも違ったようです。

IMKInputSession と IMKInputController は NSConnection で通信するので、IMKServer のインスタンスは OS 全体で一つで済みます(たぶん)。結果、IMKServer と同じプロセス空間に変換エンジンを置くこともできそうです。これは嬉しいなぁ。

ということで、前向きに移行する方向で検討してみます。