Mathieu Tozer's Dev Blog

Cocoa, the development of Words, and other software projects (including those dang assessment tasks).




Thinking... Groups Again


E-mail this post



Remember me (?)



All personal information that you provide here will be governed by the Privacy Policy of Blogger.com. More...



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

      Convert to boldConvert to italicConvert to link

 


+RSS | dev blog | Portfolio

About me

My status

Previous posts

  • my del.icio.us
  • my flickr