Is there a way to insert a custom Find bar in NSScrollView, so that it plugs in properly with the find-system of Cocoa. I did some digging around NSTextFinder
, NSTextFinderClient
and NSTextFinderClient
. Seems like they facilitate various search customisations like searching in container whose data is not a contagious string(like a form or a table view). It also facilitates customising the search container behaviour (like dimming). However in the docs there is no mention of customising the Find Bar.
The NSTextFinderBarContainer contains a property named findBarView, however, the docs clearly says This property is managed by NSTextFinder. You should not set this property.
The reason I am asking this is I want to create a custom find-bar view (like VS code) that lets users easily switch between case sensitivity and also easy toggle of regex