---
title: NSTextLocation
framework: appkit
role: symbol
role_heading: Protocol
path: appkit/nstextlocation
---

# NSTextLocation

An interface you implement that represents an abstract location inside your document’s content.

## Declaration

```swift
protocol NSTextLocation : NSObjectProtocol
```

## Topics

### Comparing text locations

- [compare(_:)](appkit/nstextlocation/compare(_:).md)

### Instance Properties

- [hash](appkit/nstextlocation/hash.md)

### Instance Methods

- [isEqual(_:)](appkit/nstextlocation/isequal(_:).md)

## Relationships

### Inherits From

- [NSObjectProtocol](objectivec/nsobjectprotocol.md)

## See Also

### Location and selection

- [NSTextRange](appkit/nstextrange.md)
- [NSTextSelection](appkit/nstextselection.md)
- [NSTextSelectionNavigation](appkit/nstextselectionnavigation.md)
