<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSTextFinderBarContainer",
  "metadataVersion" : "0.1.0",
  "role" : "Protocol",
  "symbol" : {
    "kind" : "Protocol",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(pl)NSTextFinderBarContainer"
  },
  "title" : "NSTextFinderBarContainer"
}
-->

# NSTextFinderBarContainer

A protocol that provides a container in which the find bar is displayed.

```
protocol NSTextFinderBarContainer : NSObjectProtocol
```

## Overview

To display the find bar, a container for the find bar must be specified. You specify a find bar container using the [`findBarContainer`](/documentation/AppKit/NSTextFinder/findBarContainer) of the [`NSTextFinder`](/documentation/AppKit/NSTextFinder) class.

See [`NSTextFinder`](/documentation/AppKit/NSTextFinder) for more information.

## Topics

### Find Bar View

[`findBarView`](/documentation/AppKit/NSTextFinderBarContainer/findBarView)

The view assigned by the text bar as the find bar view for the container.

[`contentView()`](/documentation/AppKit/NSTextFinderBarContainer/contentView())

A view hierarchy that contains all the views which display the contents being searched.

[`isFindBarVisible`](/documentation/AppKit/NSTextFinderBarContainer/isFindBarVisible)

Returns whether the container should display its find bar.

### Find Bar Height

[`findBarViewDidChangeHeight()`](/documentation/AppKit/NSTextFinderBarContainer/findBarViewDidChangeHeight())

Notifies the find bar container that the find bar has changed its height.



---

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)