Returns a character index appropriate for placing a zero-length selection for an insertion point associated with the mouse at the given point.
- macOS 10.5+
The point for which to return an index, in view coordinates.
The character index for the insertion point.
This method should be used for insertion points associated with mouse clicks, drag events, and so forth. For other purposes, it is better to use
character is not suitable for this role; it is intended only for uses related to text input methods.