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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to