validateAction(_:)
Allows validation of the find action before performing.
Declaration
func validateAction(_ op: NSTextFinder.Action) -> BoolParameters
- op:
The sender’s tag.
Return Value
Discussion
Responders the NSResponder method performTextFinderAction(_:) should call this method.
This method should be called by an implementation of validateUserInterfaceItem(_:) to properly validate items with an action of performTextFinderAction(_:). The responder’s validateUserInterfaceItem(_:) or validateMenuItem: implementation should pass the tag as the action for this method..