I think the best way I can think of would be to have an object act as an intermediate for this, which contains an aggregate array that table3controller is bound to. In this object define observers for tableview1controller and tableview2controller's selection property, so that this object receives KVO notifications when they change. In the observing method (observeValueForKeyPath:ofObject:change:context:) do whatever logic you need to do to based on the new selections, and update the aggregate array, making sure to do so in a KVO Compliant way so the 3rd controller observes the change and updates it's content accordingly.
+Clint On Thu, May 28, 2009 at 12:30 PM, Kelvin Chung <kelv...@shaw.ca> wrote: > I'm not sure the best way to do this, but suppose I have two > NSArrayControllers, tableView1Controller and tableView2Controller. Now > suppose I have an NSArrayController, table3Controller. > > What I am trying to do is to have it so that table3Controller's Content > Array binding depend on both tableView1Controller.selection and > tableView2Controller.selection (an NSValueTransformer will then transform > this into an NSArray). Clearly, I can't bind to both unless I somehow > aggregate the two together. What is the best way to do that? > _______________________________________________ > > 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/cts3e1%40gmail.com > > This email sent to cts...@gmail.com > _______________________________________________ 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