NCWidgetSearchViewDelegate
The interface for enabling user searches in the search view controller of a macOS Today widget.
Declaration
protocol NCWidgetSearchViewDelegate : NSObjectProtocolOverview
The NCWidgetSearchViewDelegate protocol defines methods that enable user searches in the search view controller of a Today widget. The delegate of an NCWidgetSearchViewController must adopt the NCWidgetSearchViewDelegate protocol.
The search view controller tells its delegate to perform a search on a user’s input and the delegate returns the results by setting the controller’s searchResults property. The search view controller also tells its delegate when a user clears the search field or chooses a search result, so that the delegate can prepare for a new search or dismissal.