I am having trouble wrapping my head around how to approach controller 
selection synchronization.

I have a primary view which displays all objects using a primary controller. 
Both 'A' and 'B' objects are included in the controller content. This is 
accomplished by using an abstract class in the managed object model that is a 
parent of both 'A' and 'B' objects. The primary array controller content is the 
abstract class, so we get all objects.

A secondary view shows all objects of a particular type. The secondary array 
controller content is connected to a specific object type.

The architecture looks something like this.


1. Primary View using PrimaryController : NSArrayController 

     Display 'A' Objects and 'B' Objects


2. Secondary View using AController : NSArrayController

     Display 'A' Objects Only


3. Secondary View using BController : NSArrayController

     Display 'B' Objects Only


The problem is if the user selects an object in the primary view it also needs 
to be shown as selected in the appropriate secondary view. Also if the user 
selects an object in a secondary view it needs to shown as selected in the 
primary view.

Does anyone have any suggestions on how to approach this issue?

Thanks in advance for anyone willing to think about this.

--Richard Somers

_______________________________________________

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