NSTextFinderBarContainer Protocol Reference

Conforms to
Framework
/System/Library/Frameworks/AppKit.framework
Availability
Available in OS X v10.7 and later.
Declared in
NSTextFinder.h

Overview

The NSTextFindBarContainer protocol provides a container in which the find bar is displayed.

In order to display the find bar, a container for the find bar must be specified. You specify a find bar container using the findBarContainer of the NSTextFinder class.

See NSTextFinder Class Reference for more information.

Tasks

Find Bar View

Find Bar Height

Properties

findBarView

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

@property(retain) NSView *findBarView
Discussion

This property is managed by NSTextFinder and you must not set this property.

The container may freely modify the view's width, but should not modify its height.

Availability
  • Available in OS X v10.7 and later.
Declared In
NSTextFinder.h

findBarVisible

Returns whether the container should display its find bar. (required)

@property(getter=isFindBarVisible) BOOL findBarVisible
Discussion

When this property is YES and the findBarView property is set, then the find bar is displayed by the container. Otherwise, the find bar is not displayed.

The default value should be NO.

Availability
  • Available in OS X v10.7 and later.
Declared In
NSTextFinder.h

Instance Methods

contentView

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

- (NSView *)contentView
Return Value

The root view of the content view hierarchy.

Discussion

This content view defines the view hierarchy to be dimmed during incremental search, if the NSTextFinder instance’s incrementalSearchingShouldDimContentView is YES. If this method is not implemented or returns nil, then the NSTextFinder instance will act as if incrementalSearchingShouldDimContentView is NO

Availability
  • Available in OS X v10.7 and later.
Declared In
NSTextFinder.h

findBarViewDidChangeHeight

Notifies the find bar container that the find bar has changed its height. (required)

- (void)findBarViewDidChangeHeight
Discussion

Upon receiving this message the the container may be required to re-tile its contents.

Availability
  • Available in OS X v10.7 and later.
Declared In
NSTextFinder.h