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:
Grant Limberg 2016-08-02 20:30:09 -07:00
parent 78e5a00a68
commit f54d5e9e8f
6 changed files with 36 additions and 37 deletions

View file

@ -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) {