nil the tableview data source so it doesn't try to reload data after the controller has been deallocated.

This commit is contained in:
Damiano Galassi committed 2017-10-18 11:27:46 +02:00
1 parent 022a9b893a
commit 505d3c3d84
1 file changed
+7
+7
View File
@@ -57,6 +57,13 @@ class ChapterSearchController: NSWindowController, NSTableViewDataSource, NSTabl
fatalError("init(coder:) has not been implemented")
}
deinit {
resultsTable.delegate = nil
resultsTable.dataSource = nil
chapterTable.delegate = nil
chapterTable.dataSource = nil
}
override var windowNibName: NSNib.Name? {
return NSNib.Name(rawValue: "SBChapterSearch")
}