When I restart the Core Data application with many relationships, my data (represented in NSTableView) is in random order. How to save it in the order in which the user left it before exiting the application?
Of course, I can sort the data in awakeFromNib , but this does not give me the exact order that the user used to organize the data (for example, he could manually change the lines).
Details of my document: what I have is a Relationship entity, in conjunction with a Card entity, which is managed by NSArrayController. The card has 2 attributes, "number" (int) and "name" (String), displayed through Bindings in two NSTableView columns. Sorting is done by clicking on the table headers.
How to keep sort order?
source share