Re: NSMutableArray, TableView, Bindings and Sorting
Re: NSMutableArray, TableView, Bindings and Sorting
- Subject: Re: NSMutableArray, TableView, Bindings and Sorting
- From: mmalcolm crawford <email@hidden>
- Date: Mon, 26 Jul 2004 11:43:22 -0700
On Jul 26, 2004, at 9:55 AM, email@hidden wrote:
Hmm. The way I did, did return a sorted array.
From your original post:
what's the best way of sorting the actual array, and making sure the
table view is updated - or
making sure the array is sorted, when the column table heading is
clicked.
My understanding of the question is that you want to know the "correct"
way to implement sorting in the table view using the array
controller(*)? The correct way is to implement -arrangeObjects:, which
will then be called as and when necessary.
Which example shows sorting? I can't see which one does.
The examples in the section "Filtering Array Controller + Object
Initlialisation", and the last two (Combatants and many-to-many) show
the use of arrangeObjects...
(*) I'm also assuming that there's no way to get automatic sorting
using the Sort {Key, Selector, Order} on the table column.
mmalc
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.