• 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
Keeping Multiple Identical Tables in Synch - Weird SortDescriptor Binding Problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Keeping Multiple Identical Tables in Synch - Weird SortDescriptor Binding Problem


  • Subject: Keeping Multiple Identical Tables in Synch - Weird SortDescriptor Binding Problem
  • From: Peter Zegelin <email@hidden>
  • Date: Sun, 20 Feb 2011 15:00:40 +1100

I  have several tables showing the same data that need to stay in synch. The tables are instantiated via the same nib so they are identical. The tables get their data through an array controller bound to an array in a shared object and their selection stay in synch by the array controller being bound to an NSMutableIndexSet in the same shared object. After a bit of fooling around I also managed to get the table sorting also in synch but how it works seems a bit strange.

I eventually created an array of sort descriptors in the shared object and bound the Array Controller to that. There is only one descriptor in the array. The table in turn is bound to the sortDescriptors Controller Key of the Array Controller. This all works except for the fact that there is only one sort descriptor but several table columns and they all sort as well. Indeed I commented out the actual creation of the sort descriptor in the shared object and it still sorts on all columns.

Does anyone know what may be going on and what is the correct way to do synchronised sorting via bindings?

thanks!

Peter Zegelin
http://www.fracturedsoftware.com
Rondo - MIDI for your mac
MacSimAVR - AVR microcontroller simulator for OS X

_______________________________________________

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: Keeping Multiple Identical Tables in Synch - Weird SortDescriptor Binding Problem
      • From: Quincey Morris <email@hidden>
  • Prev by Date: NSDateFormatter initialization+formatting not working
  • Next by Date: Re: NSDateFormatter initialization+formatting not working
  • Previous by thread: Re: NSDateFormatter initialization+formatting not working
  • Next by thread: Re: Keeping Multiple Identical Tables in Synch - Weird SortDescriptor Binding Problem
  • Index(es):
    • Date
    • Thread