Hi,
Like in the Music App, I load my playlists and show them in a tree and then when I click a playlist, a TableView shows its content. After that I select some tracks to add it to another TableView at the bottom :
I add the data programmatically but maybe it could be better to use the binding because actually I have a problem to remove the selected items at the bottom. Indeed I have to maintain the datas manually when an item is removed and it costs a lot of work...
Any idea about that ?
Thx.
Thanks for feedback. Don't forget to close the thread on the correct answer.
As for your next question:
Since each time I change something in the array used by the NSTableView, I need to reloadData() the NSTableView, I guess it is the same when I want to filter the array, right ?
In essence, yes, but you can reload only the relevant rows (indexPath) after insert / delete.
What is very important is to update dataSource BEFORE you add, remove or reload.
Effectively, to filter, you filter the dataSource. Then you'd better reload the full table, because it will be harder to see who has changed.