Platforms to show: All Mac Windows Linux Cross-Platform

Back to NSTextFinderMBS class.

NSTextFinderMBS.cancelFindIndicator

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa Controls MBS MacCocoa Plugin 18.5 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Cancels the find indicator immediately.

There may be some circumstances where the find indicator should be immediately cancelled or hidden, such as when the view's content or selection is changed without the knowledge of the text finder. This method will immediately cancel the current find indicator.
The NSTextFinderMBS and NSViewMBS classes will handle the find indicator correctly when a content view is resized, moved, or removed from the view hierarchy. If your content view's scrolling is done by an NSScrollViewMBS, the find indicator will also be handled for you during scrolling.

NSTextFinderMBS.Constructor

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa Controls MBS MacCocoa Plugin 18.5 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Creates a new object.

NSTextFinderMBS.performAction(operation as Integer)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa Controls MBS MacCocoa Plugin 18.5 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Performs the specified text finding action.

operation: The text finding action. See NSTextFinderAction for the possible values.

Objects that respond to performTextFinderAction typically call validateAction: to ensure that the action is valid and then invoke performAction if validation is successful.

When invoking the validateAction and performAction the item or sender’s tag should be passed as the parameter. By convention, the sender parameter for this method will have an kAction* constants set as its tag. The responder that receives this method should pass the tag as the action for this method:

NSTextFinderMBS.validateAction(operation as Integer) as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa Controls MBS MacCocoa Plugin 18.5 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Allows validation of the find action before performing.

Returns true if the operation is valid; otherwise false.

The items on this page are in the following plugins: MBS MacCocoa Plugin.


The biggest plugin in space...