NSTextInputClientの使い方(というより実装方法)のメモ
用語とか
- marked text
- insertion point
- selection range
- 選択範囲
- marked textがあるならば、selection rangeはmarked text内部にないといけない
Viewがするべきこと
- kewDown:の処理
- NSTextInputContext -handleEvent:を呼ぶ
- NSTextInputClientの実装
NSTextInputClientとNSTextInputの比較
- NSTextInputClient (Mac OS X 10.5以降)
- hasMarkedText (共通)
- markedRange (共通)
- selectedRange (共通)
- setMarkedText:selectedRange:replacementRange: (引数replacementRange追加)
- unmarkText (共通)
- validAttributesForMarkedText (共通)
- attributedSubstringForProposedRange:actualRange: (引数actualRange追加)
- insertText:replacementRange: (引数replacementRange追加)
- characterIndexForPoint: (共通)
- firstRectForCharacterRange:actualRange: (引数actualRange追加)
- doCommandBySelector: (共通)
- attributedString (optional)
- fractionOfDistanceThroughGlyphForPoint: (optional)
- baselineDeltaForCharacterAtIndex: (optional)
- windowLevel (optional)
- drawsVerticallyForCharacterAtIndex: (optional)
- NSTextInput
- hasMarkedText
- markedRange
- selectedRange
- setMarkedText:selectedRange:
- unmarkText
- validAttributesForMarkedText
- attributedSubstringFromRange:
- insertText:
- characterIndexForPoint:
- firstRectForCharacterRange:
- doCommandBySelector:
- conversationIdentifier (NSTextInputClientでは削除)
最終更新:2011年01月02日 18:32