• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
TableView binded to an Arraycontroller - How to customize sorts ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Prev by Date: Custom button cell hi-lighting
  • Next by Date: Re: Refactoring tools available for Cocoa / ObjC?
  • Previous by thread: Custom button cell hi-lighting
  • Next by thread: saveGraphicsState vs. lockFocus
  • Index(es):
    • Date
    • Thread