Mathieu Tozer's Dev Blog

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




New Design Decisions for Dictionary Management


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'm trying to work out what the filter predicate for the
availableDictionaries arrayController should be.

It should fetch dictionary objects that have a pivot language that
matches the selection of the languageArrayController.

availableDictionaryController.filterPredicate =
languageArrayController.selection.name == Dictionary.pivotLanguage

(name contains[c] $value) or (pivotLanguage contains[c] $value) or
(targetLanguages contains[c] $value)

(name contains[c] $value)

Words: Have made some good progress in dictionary management today.
Still having some issues though. It's stable but I don't know how to
update the view each time a dictionary is added, and I can't get it
to show only those dictionaries that apply to a certain language.

Maybe I can put a clause in to say
if currentLanguage.name is null, then skip this part

I'm also going to have to make a design decision about whether a
dictionary can be used for more than one kind of language or not. As
it is at the moment, a dictionary can only be used by a single
language. But what if a dictionary looks up both Japanese and
English, both ways, and a user is a native Japanese speaker, but
wants to have JPL-JPL and ENG-JPL dictionaries. It doesn't make sense
to have two different ones, it would be best to use the same
dictionary for both 'languages'. So its a many to many relationship
then. The next task is then to, when the selection changes, the
dictionary view updates itself so that all the checkboxes reflect if
the current language is using them or not.


0 Responses to “New Design Decisions for Dictionary Management”

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