I have popup button and nstableview. When I switch items in popup button the content of table should change. I have for each item in popup button the arrays which should be displayed in nstableview. I guess in two functions:
(numberOfRowsInTableView(tableView: NSTableView) -> Int
tableView(tableView: NSTableView, viewForTableColumn tableColumn:
NSTableColumn?, row: Int) -> NSView?
I have to use if conditions to choose correct array. Question is what I have to write in these if conditions indicating the popup item? Or, am I going in wrong direction ?