Hello Esteban,

On Sun, Jul 19, 2009 at 8:24 PM, Esteban A. Maringolo <emaringolo@gmail.com> wrote:
Hi,

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 ;)
John

--
Esteban A. Maringolo
_______________________________________________
Magritte, Pier and Related Tools ...
https://www.iam.unibe.ch/mailman/listinfo/smallwiki



--
http://jmck.seasidehosting.st