0

Im trying to update the NSTableView when NSTableViewDataSource was updated.

NSTableViewDataSource uses an ArrayList & had Add() & Count() methods so my code would add data from Button Click action method.

Its similar to an example at: http://www.netneurotic.de/Mono/MonoMac-NSTableView.html

I want to update the TableView manually without any binding.

I could assign the TableView a data source when it loads & it works,

However, upon updating new Entries, the TableView does not reload.

I saw the MonoMac Examples that uses TableView Binding, but I would not like to take that path.

How could I get TableView to update its list?

EDIT: The real question is that Could I get this done without using a Controller?

Thanks in advance.

Araejay
  • 222
  • 1
  • 2
  • 9

1 Answers1

0

In your controller,

    tableView.ReloadData();
Herman Schoenfeld
  • 8,464
  • 4
  • 38
  • 49