I've been raking through documentation, forums and Google for days now, with no luck. I can't figure out how bindings are supposed to make sorting work easily. All the information I've read indicates that it just happens automatically, but doesn't actually say how to make it happen automatically.
I cannot make my table sort under any circumstances, either by clicking on a table column, or use a default sort order. I'd be interested in finding how to do both, but what I really need at the moment, is for the table to stay sorted, no matter what happens, without the user ever clicking on a column header.
Currently I've got the NSTableView bound to an NSArrayController, and each of the NSTableColumns bound to the same NSArrayController. The table view's bindings include content, selectedIndexes and sortDescriptors.
What else do I need to do?
You may need to go back to first principals for me, because I get the feeling I'm missing some very basic concept(s) here, as all the documentation appears to be assuming that it's a lot easier than I'm making it out to be.
Any help is greatly appreciated.