Joining/Deleting networks now implemented.

Still need to implement known networks cache so we can join/leave networks without deleting them from the UI
This commit is contained in:
Grant Limberg 2016-06-09 19:59:05 -07:00
parent 975bcb8aff
commit 188f8021f8
4 changed files with 88 additions and 26 deletions

View file

@ -34,6 +34,10 @@ class ShowNetworksViewController: NSViewController, NSTableViewDelegate, NSTable
}
}
func deleteNetworkFromList(nwid: String) {
}
// NSTableViewDataSource
func numberOfRowsInTableView(tableView: NSTableView) -> Int {
@ -47,6 +51,7 @@ class ShowNetworksViewController: NSViewController, NSTableViewDelegate, NSTable
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.parent = self
cell.networkIdField.stringValue = String(network.nwid, radix: 16)
cell.networkNameField.stringValue = network.name