mirror of
https://github.com/ZeroTier/ZeroTierOne
synced 2025-07-16 10:03:14 -07:00
WIP. Mac UI
This commit is contained in:
parent
d5620288d5
commit
940c0f2b93
4 changed files with 170 additions and 15 deletions
|
@ -40,4 +40,20 @@ class ShowNetworksViewController: NSViewController, NSTableViewDelegate, NSTable
|
|||
}
|
||||
|
||||
// end NSTableViewDataSource
|
||||
|
||||
// NSTableViewDelegate
|
||||
|
||||
func tableView(tableView: NSTableView, viewForTableColumn tableColumn: NSTableColumn?, row: Int) -> NSView? {
|
||||
if let cell = tableView.makeViewWithIdentifier("NetworkInfoCell", owner: nil) as? NetworkInfoCell {
|
||||
let network = networkList[row]
|
||||
cell.networkIdField.stringValue = String(network.nwid, radix: 16)
|
||||
cell.networkNameField.stringValue = network.name
|
||||
|
||||
return cell
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
// end NSTableViewDelegate
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue