I'm a relatively inexperienced Cocoa programmer who learns mostly by looking at sample code and trial and error, and I'm stumped by this one: I have a View-Based Table that is bound to an NSArrayController
. Each of the columns has its view cell value bound to the Table Cell View's objectvalue.description keys.
The problem is that when I click a column heading to sort the table, the array does not update its order along with it. Since I've learned mostly by trial and error, there may be some fundamental concept I'm missing, but I've performed many searches and have come up with nothing. The closest result was here:
https://stackguides.com/questions/9280762/keep-nsarraycontroller-in-sync-with-sorted-nstableview
Shouldn't the bindings keep the array and the table in sync?