nil the tableview data source so it doesn't try to reload data after the controller has been deallocated.
This commit is contained in:
1 file changed
+7
@@ -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")
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user