A half-open range of text in a buffer you use to select text or specify the insertion point for new text.
SDK
- macOS 10.12+
Framework
- Xcode
Kit
Declaration
class XCSourceTextRange : NSObject
Overview
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 start
and 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.