Sort Descriptor problem in NSTableView

2008-08-11 Thread Graham Cox
I have a table view where one column's strings are sorted using (NSCaseInsensitiveSearch | NSNumericSearch). To do this I use compare:options: on the strings. I'd like to be able to allow the user to sort ascending or descending in the usual way by clicking the column header but using the

Re: Sort Descriptor problem in NSTableView

2008-08-11 Thread Graham Cox
On 12 Aug 2008, at 12:26 am, Keary Suska wrote: OTOH, implement a custom sort method, setting it as the method to use in the table column properties. OK, that helps a little - I've made some progress in that I'm now getting the sort change notification in my delegate and the arrow

Re: Sort Descriptor problem in NSTableView

2008-08-11 Thread Adam R. Maxwell
On Monday, August 11, 2008, at 05:32PM, Graham Cox [EMAIL PROTECTED] wrote: I just want to sort a simple mutable array of strings. So what should the key be? There is no property I want to sort on, the string itself *is* the property. But if I leave the key field blank the table just

Re: Sort Descriptor problem in NSTableView [SOLVED]

2008-08-11 Thread Graham Cox
On 12 Aug 2008, at 10:39 am, Adam R. Maxwell wrote: I just want to sort a simple mutable array of strings. So what should the key be? There is no property I want to sort on, the string itself *is* the property. But if I leave the key field blank the table just keeps accumulating broken sort