<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSSelectionGranularity",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:@E@NSSelectionGranularity"
  },
  "title" : "NSSelectionGranularity"
}
-->

# NSSelectionGranularity

These constants specify how much the text view extends the selection when the user drags the mouse. They’re used by [`selectionGranularity`](/documentation/AppKit/NSTextView/selectionGranularity), and [`selectionRange(forProposedRange:granularity:)`](/documentation/AppKit/NSTextView/selectionRange(forProposedRange:granularity:)):

```
enum NSSelectionGranularity
```

## Topics

### Constants

[`NSSelectByCharacter`](/documentation/AppKit/NSSelectionGranularity/selectByCharacter)

Extends the selection character by character.

[`NSSelectByWord`](/documentation/AppKit/NSSelectionGranularity/selectByWord)

Extends the selection word by word.

[`NSSelectByParagraph`](/documentation/AppKit/NSSelectionGranularity/selectByParagraph)

Extends the selection paragraph by paragraph.

## Relationships

### Conforms To

[`RawRepresentable`](/documentation/Swift/RawRepresentable)

[`BitwiseCopyable`](/documentation/Swift/BitwiseCopyable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Sendable`](/documentation/Swift/Sendable)

[`Hashable`](/documentation/Swift/Hashable)

[`Equatable`](/documentation/Swift/Equatable)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)