<!--
{
  "availability" : [
    "macOS: 12.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSTextSelectionNavigation/textSelections(interactingAt:inContainerAt:anchors:modifiers:selecting:bounds:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSTextSelectionNavigation(im)textSelectionsInteractingAtPoint:inContainerAtLocation:anchors:modifiers:selecting:bounds:"
  },
  "title" : "textSelections(interactingAt:inContainerAt:anchors:modifiers:selecting:bounds:)"
}
-->

# textSelections(interactingAt:inContainerAt:anchors:modifiers:selecting:bounds:)

Returns an array of text selections produced by a tap or click at the point you specify.

```
func textSelections(interactingAt point: CGPoint, inContainerAt containerLocation: any NSTextLocation, anchors: [NSTextSelection], modifiers: NSTextSelectionNavigation.Modifier, selecting: Bool, bounds: CGRect) -> [NSTextSelection]
```

## Parameters

`point`

A `CGPoint` that represents the location of the tap or click.

`containerLocation`

A `NSTextLocation that describes the contasiner location`.

`anchors`

An array of `NSTextSelection` objects.

`modifiers`

One or more [`NSTextSelectionNavigation.Modifier`](/documentation/AppKit/NSTextSelectionNavigation/Modifier) options.

`selecting`

A Boolean value that indicates if the selection is in drag session.

`bounds`

A `CGRect` that defines the view area in the container’s coordinate system that can interact with events.

## Return Value

An array of text selections.

---

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)