Thinking... Groups Again
Published Sunday, July 23, 2006 by Mathieu | E-mail this post
I would really like my groups and listing system working a bit better. I mean at all.
The wordsArrayController must answer to some as yet undefined 'groupArrayController' object that coordinates what is going to go in the main words array. What it displays depends on
1. Which language is selected
2. Which group is selected.
It needs to maintain an array of two different kinds of objects.
SmartGroup objects and ManualGroup objects. It presents to a tableview the smartGroup objects that are in the system at the moment. These entities are managed by Core Data. An application can have many ManualGroups and many SmartGroups, but only one groupArrayController. What set of groups go in the array controller depends on the currently selected language.
GroupArrayController
|S|M|S|S|M|M| | | | | <<<<<<<<<< LanguageArrayController
.
.
SmartGroup
Here's what it's likely to look and work like:
View GroupTableView
.
.
Control GroupArrayController (subclass to add arrays of smart and manual groups and aggregate them)
. .
. .
Model SmartGroups ManualGroups
Using the (reasonable) success of the Lookup sub project, maybe it's best to develop this system independently of Words and then import it? The controller will contain all of the custom code though.
0 Responses to “Thinking... Groups Again”
Leave a Reply