Hi there,
I have an nstableview in my application containing several columns. When I click on one column header in order to have it sorted ascending, rows with a nil-value in that column are being sorted on top followed by non-nil-valued rows in ascending order. If I reclick on the same column, first the non-nil-valued rows are being shown in descending order followed by nil-valued rows.
What I want to do is having nil-valued rows always sticked to the bottom. So at first non-nil-valued rows being sorted in either ascending or descending way should be presented and nil-valued rows should be kept at the bottom. How can this be done the best way?
Sorting in this context - to my understand - is done by the nsarraycontroller's arrangedObject. So should I subclass nsarraycontroller and use a custom sorting algorithm in arrangedObjects-method, or is there a better way to get the result described above?
Thanks in advance.
Yours,
Marius