---
title: "layoutManagerOwnsFirstResponder(in:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nslayoutmanager/layoutmanagerownsfirstresponder(in:)"
---

# layoutManagerOwnsFirstResponder(in:)

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

## Declaration

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

## Parameters

- `window`: The window whose first responder is tested.

## Return Value

Return Value true if the first responder in window is a text view associated with the receiver; otherwise, false.

## See Also

### Managing the responder chain

- [firstTextView](appkit/nslayoutmanager/firsttextview.md)
- [textViewForBeginningOfSelection](appkit/nslayoutmanager/textviewforbeginningofselection.md)
