Conversion to Swift 4.

This commit is contained in:
Qiu Yuzhou
2017-10-20 18:39:25 +08:00
parent 3faad7b07d
commit d56b108eb8
9 changed files with 117 additions and 112 deletions

View File

@ -48,9 +48,9 @@ class ProxyInterfacesViewCtrl: NSViewController, NSTableViewDataSource, NSTableV
let networkService = networkServices[row] as! [String: Any]
let key = networkService["key"] as! String
if selectedNetworkServices.contains(key) {
cell.state = 1
cell.state = NSControl.StateValue(rawValue: 1)
} else {
cell.state = 0
cell.state = NSControl.StateValue(rawValue: 0)
}
let userDefinedName = networkService["userDefinedName"] as! String
cell.title = userDefinedName