Platforms to show: All Mac Windows Linux Cross-Platform
Back to NSTextFinderMBS class.
NSTextFinderMBS.client as NSViewMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Cocoa Controls | MBS MacCocoa Plugin | 18.5 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
The NSTextFinderMBS instance class must be associated with a client object that implements the NSTextFinderClient protocol in order to function. The client is responsible for providing the string to be searched, the location for the find bar, and the methods which control feedback to the user about the search results.
(Read and Write property)
NSTextFinderMBS.findBarContainer as NSViewMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Cocoa Controls | MBS MacCocoa Plugin | 18.5 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
This property must be set to support the find bar.
When the find bar is to be shown, NSTextFinderMBS invokes showFindBarView on the findBarContainer object, passing the view for the find bar, which it should display somewhere that is associated appropriately with the content being searched.
The NSScrollViewMBS class implements NSTextFinderBarContainer protocol and is the correct place to display the find bar in most circumstances. The container may freely modify the find bar view's width and origin, but not its height.
If this property is not set, then the find bar cannot be shown.
(Read and Write property)
Some examples using this property:
NSTextFinderMBS.Handle as Integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Cocoa Controls | MBS MacCocoa Plugin | 18.5 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
(Read and Write property)
NSTextFinderMBS.incrementalSearchingEnabled as Boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Cocoa Controls | MBS MacCocoa Plugin | 18.5 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
If true, then the find bar will do incremental searches. If it returns false, then the find bar will behave regularly.
The default value is false.
(Read and Write property)
Some examples using this property:
NSTextFinderMBS.incrementalSearchingShouldDimContentView as Boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Cocoa Controls | MBS MacCocoa Plugin | 18.5 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
If true, then when an incremental search begins, the findBarContainer instance’s parent contentView will be dimmed, except for the locations of the incremental matches. If false, then the incremental matches will not be highlighted automatically, but you can use incrementalMatchRanges to highlight the matches yourself.
The default value is true.
(Read and Write property)
The items on this page are in the following plugins: MBS MacCocoa Plugin.