• 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
NSTableView, NSArrayController and secondary sortings
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSTableView, NSArrayController and secondary sortings


  • Subject: NSTableView, NSArrayController and secondary sortings
  • From: Adhamh Findlay <email@hidden>
  • Date: Sat, 8 Dec 2007 10:00:11 -0600

Hello,

I have an NSTableView that is bound to an NSArrayController. There are 5 columns in the table view, one of which is an NSDate. What I would like to do is always have the secondary sort be the date column. The default behavior seems to be that the secondary sort is based on the previously selected column.

I have setup sort keys on all the columns in IB and tired various things with setSortDescriptors: on NSTableView and NSArrayController, but I'm not having any luck. It seems like what I really need it sortDescriptorsDidChange: from the NSTableDataSource protocol, but since I'm using bindings that's not available.

Does anyone have suggestions on how to do programmatically set the secondary sort descriptor in this situation?

Thanks,

Adhamh

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: NSTableView, NSArrayController and secondary sortings
      • From: mmalc crawford <email@hidden>
    • Re: NSTableView, NSArrayController and secondary sortings
      • From: Bill Garrison <email@hidden>
  • Prev by Date: Re: Low level PNG image manipulation
  • Next by Date: detecting no internet connection
  • Previous by thread: Re: Low level PNG image manipulation
  • Next by thread: Re: NSTableView, NSArrayController and secondary sortings
  • Index(es):
    • Date
    • Thread