Re: How to sort smoothly when NSTableColumn's Sort Key is empty

2008-06-03 Thread Hamish Allan
On Tue, Jun 3, 2008 at 4:52 PM, an0 <[EMAIL PROTECTED]> wrote: > And the NSTableView's sortDescriptors are found cumulated instead of > changed by NSLog in dataSource's tableView:sortDescriptorsDidChange: > method. Hmm, could be a bug. Try giving your object a readonly property that returns self,

How to sort smoothly when NSTableColumn's Sort Key is empty

2008-06-03 Thread an0
I know how to sort items in NSTableView when each NSTableColumn corresponds to a property of the item object. But what if there is only one NSTableColumn and it is just mapped to the item object itself instead of a property of it? I set the Selector to "compare:" and leave the Sort Key to empty for