Instead of using NSTextView, we create custom views that input Japanese using the NSTextInputClient.When performing the Japanese Kanji conversion, the Kanji conversion candidate selection window is displayed, but whether the text is written horizontally or vertically, the horizontal candidate selection window is always displayed, so I don't know how to switch to the vertical candidate selection window.
Please tell me how to switch the orientation of the candidate selection window vertically and horizontally.
(The NSTextView and the attached application TextEdit seem to be able to change the orientation of the candidate selection window depending on the orientation of the text.)
NSTextInputClient protocol method
- (BOOL) drawVerticallyForCharacterAtIndex: (NSUInteger) charIndex  allows you to specify vertical or horizontal menus for translation candidates.
© 2022 OneMinuteCode. All rights reserved.