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

@ -56,14 +56,14 @@ class NetworkInfoCell: NSTableCellView {
}
func joinNetwork(nwid: String) {
ServiceCom.sharedInstance.joinNetwork(nwid,
ServiceCom.sharedInstance().joinNetwork(nwid,
allowManaged: allowManaged.state == NSOnState,
allowGlobal: allowGlobal.state == NSOnState,
allowDefault: !Network.defaultRouteExists(parent.networkList) && (allowDefault.state == NSOnState))
}
func leaveNetwork(nwid: String) {
ServiceCom.sharedInstance.leaveNetwork(nwid)
ServiceCom.sharedInstance().leaveNetwork(nwid)
}
@IBAction func onAllowStatusChanged(sender: NSButton) {