• 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
Custom sort order on NSTableColumn
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Custom sort order on NSTableColumn


  • Subject: Custom sort order on NSTableColumn
  • From: Trygve Inda <email@hidden>
  • Date: Mon, 30 Mar 2009 02:28:28 +0000
  • Thread-topic: Custom sort order on NSTableColumn

I have an NSTableView with 4 columns. There is an NSArrayController behind
it and two columns use bindings to grab data from the array directly.

The other two columns have to calculate their content based on other fields
in the array. I need to define a custom sort comparison method for these.
How can I do this?

I have the data source working - so the bound columns and the calculated
columns are all showing the correct data, but only the bound columns can
sort.

I need some way to define a custom sort method for my other two columns.

Thanks,

Trygve



_______________________________________________

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

  • Prev by Date: Re: Custom windows and NSWindowBackingLocationVideoMemory
  • Next by Date: ack no class
  • Previous by thread: Re: Absolutely Mysterious Compilation Error
  • Next by thread: ack no class
  • Index(es):
    • Date
    • Thread