I have a TextFinderController object that implements the NSTextFinderClient protocol, and a WebView's WebDynamicScrollBarsView (which is an NSScrollView) set as the NSTextFinder's findBarContainer. When I try to make the findBar visible in the ScrollView by setting findBarVisible to YES I am not observing a result. I have noticed that the ScrollView's findBarView is null even after setting the findBarContainer. I am using this code to get the ScrollView from the WebView. This is a Mac application and not an iOS application. How do I get the findBar to show up in the WebView?
self.textFinder = [[NSTextFinder alloc] init];
self.textFinder.client = self.textFinderController;
self.textFinder.findBarContainer = [self.webView scrollView];
[self.webView scrollView].findBarPosition = NSScrollViewFindBarPositionAboveContent;
[self.webView scrollView].findBarVisible = YES;