Contents

NSTextRange

A class that represents a contiguous range between two locations inside document contents.

Declaration

class NSTextRange

Overview

An NSTextRange consists of the starting and terminating locations. There the two basic properties: location and endLocation, respectively. The terminating location, endLocation, is directly following the last location in the range. For example, a location contains a range if (range.location <= location) && (location < range.endLocation) is true.

Topics

Creating a text range

Characteristics of the text range

Comparing text ranges

Finding text within the text range

Initializers

See Also

Location and selection