A half-open range of text in a buffer you use to select text or specify the insertion point for new text.
- macOS 10.12+
Source text ranges are half-open ranges. As a result, source text ranges include the character at the start position but exclude the character at the end position.
A range with equal start and end positions may be used to indicate a point within the buffer, such as an insertion point. The
end position may be improperly ordered while you prepare them in your own code, but must be properly ordered before passing an
XCSource instance to other methods.