swift - NSTableView's makeViewWithIdentifier finding nil on one of its child views -
i have nstableview 2 columns, 1 non-editable nstextfield , other editable one. each cell has different identifier ("camera" first column, "position" other). i having no trouble first column's cell, however, second 1 ("position") finds nil when trying access editable nstextfield. have tried using 1 identifier. declaring @ beginning of viewfortablecolumn, , several other things, keeps missing nstextfield. ideas might going wrong? my code: func tableview(tableview: nstableview, viewfortablecolumn tablecolumn: nstablecolumn?, row: int) -> nsview? { if tablecolumn?.identifier == "column0" { let cell = tableview.makeviewwithidentifier("camera", owner: nil) as? nstablecellview cell?.textfield?.stringvalue = array(cameraorder.keys)[row] return cell } else { let cell = tableview.makeviewwithidentifier("position", owner: nil) as? nstablecellview cell!.textfield!.stringva...