replace ServiceCom with objc class

This commit is contained in:
Grant Limberg 2016-08-06 19:45:58 -07:00
parent a0db48571d
commit b51d68a419
9 changed files with 323 additions and 234 deletions

View file

@ -244,10 +244,10 @@ class AppDelegate: NSObject, NSApplicationDelegate, NSMenuDelegate {
let id = String(network.nwid, radix: 16)
if network.connected {
ServiceCom.sharedInstance.leaveNetwork(id)
ServiceCom.sharedInstance().leaveNetwork(id)
}
else {
ServiceCom.sharedInstance.joinNetwork(id)
ServiceCom.sharedInstance().joinNetwork(id, allowManaged: true, allowGlobal: false, allowDefault: false)
}
}