Re: Sorting a bound NSTableView programatically

2008-12-17 Thread Jean-Nicolas Jolivet
Thanks to both of you for the advices! Lastly, you can treat the ordering not as a view property but as a model property. You would sort the array in your model, probably just after reading it in. This made sense hehe not sure why I didn't think of it... basically I decided to load the d

Re: Sorting a bound NSTableView programatically

2008-12-17 Thread Ken Thomases
On Dec 17, 2008, at 8:53 PM, Jean-Nicolas Jolivet wrote: What I need to do then, is to sort my tableview by FirstName automatically and then disable sorting altogether When you bind the columns of a table, there's an implicit binding of three bindings on the table itself: content, selec

Re: Sorting a bound NSTableView programatically

2008-12-17 Thread Kiel Gillard
Have you tired [arrayController rearrangeObjects]? You may need to ensure that the sort descriptors of the

Sorting a bound NSTableView programatically

2008-12-17 Thread Jean-Nicolas Jolivet
I'm pretty sure this one is obvious but I'm just spinning around in circles in the docs here and I can't seem to find out how to do it... I have a basic NSTableView binding setup in place (NSTableView's columns bound to an NSArrayController, which is bound to an NSMutableArray ...) I'm tr