I'm toying around with MAPluggableAccessor. While
I really like
to introduce some kind of delegated descriptions it doesn't
work that easy. I'm not really familiar with caching of the
magritte descriptions. My problem is that I'm operating on
a MAContainerComponent using childAt: .
I don't have such a method.
Really? If this since ages and it seems to be your code :)
MAContainerComponent>>childAt: aDescription
^ children at: aDescription ifAbsent: [ nil ]
Ahh, I thought you refereed to MAContainerDescription. I have
#childAt: in MAContainerComponent too.
What you could try is to replace the Dictionary with an
IdentityDictionary in #buildChildren of MAContainerComponent. I am not
quite sure about all the consequences, but I guess it should solve
your problem.
I don't
understand the above part.
I was just wondering if I try to use the MAPluggableAccessor the
wrong way and hence facing problems. I can do
accessor
^ accessor ifNil: [
accessor := (MAPluggableAccessor
read: [:model|]
write: [:model :object| ]) ]
and then
descriptionThings
^ MAToManyRelationDescription
accessor: self accessor
label: 'Things'
priority: 10
This way I get it running but I don't like it much. I don't know exactly
what MANamedBuilder is caching. I just thought it might solve the
problem by caching the instances.
Why don't quite understand what you are trying to do? If you don't use
the accessor just don't assign one.
Lukas
--
Lukas Renggli
http://www.lukas-renggli.ch