Re: ArrayController cannot sort

2012-10-01 Thread Gerriet M. Denkmann
On 2 Oct 2012, at 11:10, Ken Thomases wrote: > On Oct 1, 2012, at 10:20 PM, Kyle Sluder wrote: > >> On Mon, Oct 1, 2012, at 07:56 PM, Gerriet M. Denkmann wrote: >>> So: how do I instruct my ArrayController to use localizedCompare: ? >> >> -[NSTableColumn setSortDescriptorPrototype:] >> >>

Re: ArrayController cannot sort

2012-10-01 Thread Ken Thomases
On Oct 1, 2012, at 10:20 PM, Kyle Sluder wrote: > On Mon, Oct 1, 2012, at 07:56 PM, Gerriet M. Denkmann wrote: >> So: how do I instruct my ArrayController to use localizedCompare: ? > > -[NSTableColumn setSortDescriptorPrototype:] > >

Re: ArrayController cannot sort

2012-10-01 Thread Kyle Sluder
On Mon, Oct 1, 2012, at 07:56 PM, Gerriet M. Denkmann wrote: > So: how do I instruct my ArrayController to use localizedCompare: ? -[NSTableColumn setSortDescriptorPrototype:]

ArrayController cannot sort

2012-10-01 Thread Gerriet M. Denkmann
I have a TableView and an ArrayController (no DataSource) and everything works fine. Clicking on a column header sorts my table ascending or descending. But the order of the rows is totally wrong. It seems that the ArrayController uses compare: to sort my strings. The documentation rightly says: