WIP. Mac UI

This commit is contained in:
Grant Limberg 2016-05-27 13:28:32 -07:00
parent d5620288d5
commit 940c0f2b93
4 changed files with 170 additions and 15 deletions

View file

@ -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
}