---
title: NSTextSelectionManager.Delegate
framework: appkit
role: symbol
role_heading: Protocol
path: appkit/nstextselectionmanager/delegate-swift.protocol
---

# NSTextSelectionManager.Delegate

A set of methods that manage text selection state and let you customize selection behavior.

## Declaration

```swift
protocol Delegate : NSObjectProtocol
```

## Overview

Overview Delegates are responsible for managing the text selection state and can customize selection behavior by implementing optional methods.

## Topics

### Instance Properties

- [textSelection](appkit/nstextselectionmanager/delegate-swift.protocol/textselection.md)

### Instance Methods

- [selectionManager(_:frameOfTextContainerAt:)](appkit/nstextselectionmanager/delegate-swift.protocol/selectionmanager(_:frameoftextcontainerat:).md)
- [selectionManager(_:locationOfTextContainerAt:)](appkit/nstextselectionmanager/delegate-swift.protocol/selectionmanager(_:locationoftextcontainerat:).md)
- [selectionManager(_:makeDraggingSession:)](appkit/nstextselectionmanager/delegate-swift.protocol/selectionmanager(_:makedraggingsession:).md)
- [selectionManager(_:shouldBeginSelectionAt:)](appkit/nstextselectionmanager/delegate-swift.protocol/selectionmanager(_:shouldbeginselectionat:).md)
- [selectionManagerDidEndSelection(_:)](appkit/nstextselectionmanager/delegate-swift.protocol/selectionmanagerdidendselection(_:).md)
- [selectionManagerWillBeginSelection(_:)](appkit/nstextselectionmanager/delegate-swift.protocol/selectionmanagerwillbeginselection(_:).md)

## Relationships

### Inherits From

- [NSObjectProtocol](objectivec/nsobjectprotocol.md)
