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
-
findBarViewrequired property -
– contentView -
findBarVisiblerequired property
Find Bar Height
-
– findBarViewDidChangeHeightrequired method
Properties
findBarView
The view assigned by the text bar as the find bar view for the container. (required)
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.hfindBarVisible
Returns whether the container should display its find bar. (required)
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.hInstance Methods
contentView
A view hierarchy that contains all the views which display the contents being searched.
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.hfindBarViewDidChangeHeight
Notifies the find bar container that the find bar has changed its height. (required)
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© 2011 Apple Inc. All Rights Reserved. (Last updated: 2011-06-06)