|
|
@ -41,6 +41,8 @@ class OnboardingSearchController: NSViewController { |
|
|
|
|
|
|
|
|
|
|
|
view.wantsLayer = true |
|
|
|
view.wantsLayer = true |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
searchResultsDataSource = SearchDataSource(with: searchBar, location: .onboarding) |
|
|
|
|
|
|
|
|
|
|
|
resultsTableView.isHidden = true |
|
|
|
resultsTableView.isHidden = true |
|
|
|
resultsTableView.delegate = self |
|
|
|
resultsTableView.delegate = self |
|
|
|
resultsTableView.setAccessibility("ResultsTableView") |
|
|
|
resultsTableView.setAccessibility("ResultsTableView") |
|
|
@ -70,16 +72,6 @@ class OnboardingSearchController: NSViewController { |
|
|
|
setupUndoButton() |
|
|
|
setupUndoButton() |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
override func viewWillAppear() { |
|
|
|
|
|
|
|
super.viewWillAppear() |
|
|
|
|
|
|
|
searchResultsDataSource = SearchDataSource(with: searchBar, location: .onboarding) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
override func viewWillDisappear() { |
|
|
|
|
|
|
|
super.viewWillDisappear() |
|
|
|
|
|
|
|
searchResultsDataSource = nil |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
deinit { |
|
|
|
deinit { |
|
|
|
if let themeDidChangeNotif = themeDidChangeNotification { |
|
|
|
if let themeDidChangeNotif = themeDidChangeNotification { |
|
|
|
NotificationCenter.default.removeObserver(themeDidChangeNotif) |
|
|
|
NotificationCenter.default.removeObserver(themeDidChangeNotif) |
|
|
|