Contents

selectionRange()

Returns where the range of the selection that should be placed inside marked text.

Declaration

func selectionRange() -> NSRange

Return Value

The range of the selection.

Discussion

This method is called by updateComposition() to obtain the selection range for marked text. The default implementation sets the selection range at the end of the marked text. You should override this method if your input method provides font or glyph information.

See Also

Working with Ranges