Flatten dictionary description
p3anoman at gmail.com
Mon Jul 20 03:25:59 MEST 2009
On Sun, Jul 19, 2009 at 8:24 PM, Esteban A. Maringolo
<emaringolo at gmail.com>wrote:
> I'm trying to flatten an accessor, but I can't find how.
> What I have is ClassA which has a dictionary with ClassB as its
> association values, and each ClassB has a value too.
> What I want to accomplish, is to flatten all this structure, so
> everytime I want to edit an instance of ClassA, I have direct access
> to ClassB's value.
> ClassA has a dictionary, but its access is encapsulated trough
> ClassA>>atXXX: and ClassA>>atXXX:put:, I could change it to standard
> #at:put: pair, in order to user MADictionaryAccesor or use a
> MAPlugabbleAccessor, but I'm doing something wrong, because I don't
> know how to flatten ClassA descriptions.
> Any pointer or example to look at?
MADescription>>propertyAccessor: is a good example of chaining accessors.
It sounds like that is what you need to do.
> Thanks in advance,
If it helps then you are welcome in advance ;)
> Esteban A. Maringolo
> Magritte, Pier and Related Tools ...
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the smallwiki