the quest for leaks is over.
Why a singleton doesn't leak, vs calling static methods on a class is beyond me
This commit is contained in:
@@ -35,8 +35,6 @@ class ShowNetworksViewController: NSViewController, NSTableViewDelegate, NSTable
|
||||
override func viewWillAppear() {
|
||||
super.viewWillAppear()
|
||||
visible = true
|
||||
|
||||
netMonitor.start()
|
||||
}
|
||||
|
||||
override func viewWillDisappear() {
|
||||
@@ -45,8 +43,6 @@ class ShowNetworksViewController: NSViewController, NSTableViewDelegate, NSTable
|
||||
let filePath = dataFile()
|
||||
NSKeyedArchiver.archiveRootObject(self.networkList, toFile: filePath)
|
||||
visible = false
|
||||
|
||||
netMonitor.stop()
|
||||
}
|
||||
|
||||
func deleteNetworkFromList(nwid: String) {
|
||||
|
||||
Reference in New Issue
Block a user