Re: programmatically sorting an NSTableView

2011-07-13 Thread Peter
See here: http://www.cocoabuilder.com/archive/cocoa/174051-programmatically-sort-nstableview.html and here http://www.cocoabuilder.com/archive/cocoa/115880-programatically-sorting-tableview.html Am 12.07.2011 um 22:43 schrieb James Walker: > I have an NSTableView containing one column, which i

Re: programmatically sorting an NSTableView

2011-07-13 Thread James Walker
On 7/12/2011 11:43 PM, Ken Thomases wrote: On Jul 12, 2011, at 9:24 PM, James Walker wrote: On 7/12/2011 6:14 PM, Ken Thomases wrote: On Jul 12, 2011, at 5:36 PM, James Walker wrote: On 7/12/2011 2:04 PM, Ken Thomases wrote: Invoking -setSortDescriptors: on the array controller does sort i

Re: programmatically sorting an NSTableView

2011-07-12 Thread Ken Thomases
On Jul 12, 2011, at 9:24 PM, James Walker wrote: > On 7/12/2011 6:14 PM, Ken Thomases wrote: >> On Jul 12, 2011, at 5:36 PM, James Walker wrote: >> >>> On 7/12/2011 2:04 PM, Ken Thomases wrote: >>> Invoking -setSortDescriptors: on the array controller does sort it (or should). Ba

Re: programmatically sorting an NSTableView

2011-07-12 Thread James Walker
On 7/12/2011 6:14 PM, Ken Thomases wrote: On Jul 12, 2011, at 5:36 PM, James Walker wrote: On 7/12/2011 2:04 PM, Ken Thomases wrote: Invoking -setSortDescriptors: on the array controller does sort it (or should). Back on 10.4, it may have been necessary to follow that with a call to -rearran

Re: programmatically sorting an NSTableView

2011-07-12 Thread Ken Thomases
On Jul 12, 2011, at 5:36 PM, James Walker wrote: > On 7/12/2011 2:04 PM, Ken Thomases wrote: > >> Invoking -setSortDescriptors: on the array controller does sort it (or >> should). >> Back on 10.4, it may have been necessary to follow that with a call to >> -rearrangeObjects. > > -[NSArrayCont

Re: programmatically sorting an NSTableView

2011-07-12 Thread James Walker
> Am 12.07.2011 um 22:43 schrieb James Walker: > >> I have an NSTableView containing one column, which is bound to an >> NSArrayController. I've set a sort key and selector for the column >> in IB, and I've called setSortDescriptors: on the array controller. >> Clicking the column header sorts it

Re: programmatically sorting an NSTableView

2011-07-12 Thread Ken Thomases
On Jul 12, 2011, at 3:43 PM, James Walker wrote: > I have an NSTableView containing one column, which is bound to an > NSArrayController. I've set a sort key and selector for the column in IB, > and I've called setSortDescriptors: on the array controller. Clicking the > column header sorts it,

programmatically sorting an NSTableView

2011-07-12 Thread James Walker
I have an NSTableView containing one column, which is bound to an NSArrayController. I've set a sort key and selector for the column in IB, and I've called setSortDescriptors: on the array controller. Clicking the column header sorts it, but how can I sort programmatically? It seems odd that