<!--
{
  "availability" : [
    "macOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSTextSelectionManager/Delegate-swift.protocol/selectionManager(_:shouldBeginSelectionAt:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(pl)NSTextSelectionManagerDelegate(im)selectionManager:shouldBeginSelectionAtPoint:"
  },
  "title" : "selectionManager(_:shouldBeginSelectionAt:)"
}
-->

# selectionManager(_:shouldBeginSelectionAt:)

Asks the delegate whether a selection can begin at the specified point.

```
optional func selectionManager(_ selectionManager: NSTextSelectionManager, shouldBeginSelectionAt point: NSPoint) -> Bool
```

## Parameters

`selectionManager`

The selection manager requesting permission.

`point`

The point in the view’s coordinate system where the selection gesture began.

## Return Value

`YES` if selection can begin at the point; otherwise, `NO`.

## Discussion

Return `YES` to allow a text selection to begin at the specified point, `NO` to prevent it. If the delegate doesn’t implement this method, selection is always allowed. The selection manager calls this method when the user initiates a selection gesture at the given point in the coordinate system of the view containing the selection manager.

---

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)