TableView binded to an Arraycontroller - How to customize sorts ?
TableView binded to an Arraycontroller - How to customize sorts ?
- Subject: TableView binded to an Arraycontroller - How to customize sorts ?
- From: Guillaume Gandreau <email@hidden>
- Date: Tue, 2 May 2006 21:49:44 +0200
Hello,
I've got a NSTableView. I've binded it in IB with an arrayController.
This arrayController is binded with an array of custom objects.
Each of these objects has 3 attributes : name, date, size.
For each attributes, I've implemented a sort method that allow me to
let one special object always in first position.
So the tableView is setting up like this :
* in bindings : value is bind to my arrayController, controller key :
arrangedObject, modèleKeyPath : the corresponding attribute,
* in attributes :
- sort Key : self
- sort Selector : the custom sort method for the column
The problem is : the 3 columns with the same key behaves as 1 column
and the sort method is always the same as the one choose the first
one...
How can I manage this ?
Thanks !
Guillaume
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden