<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSLayoutManager/layoutManagerOwnsFirstResponder(in:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSLayoutManager(im)layoutManagerOwnsFirstResponderInWindow:"
  },
  "title" : "layoutManagerOwnsFirstResponder(in:)"
}
-->

# layoutManagerOwnsFirstResponder(in:)

Indicates whether the first responder in the specified window is a text view for the layout manager.

```
func layoutManagerOwnsFirstResponder(in window: NSWindow) -> Bool
```

## Parameters

`window`

The window whose first responder is tested.

## Return Value

<doc://com.apple.documentation/documentation/Swift/true> if the first responder in `window` is a text view associated with the receiver; otherwise, <doc://com.apple.documentation/documentation/Swift/false>.

---

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)