Controller Selection Synchronization
Controller Selection Synchronization
- Subject: Controller Selection Synchronization
- From: Richard Somers <email@hidden>
- Date: Sat, 09 Apr 2011 19:00:41 -0600
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 (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