Hi,
In Magritte a MAContainer has a collection of MAElementDescription objects called children. Often I would like to access a child using it's name. Currently a MADescription doesn't have a name property. Most of the times it does have a label and an accessor so I can find a child like this:
| accessor |
accessor := #eventStatus asAccessor.
MBBooking description detect: [ :each | each accessor = accessor ]
or
MBBooking description detect: [ :each | each label = 'Event status' ]
I don't like these options for identifying a child description because they depend on properties that are used for other things. I am thinking about adding an some kind of 'name' property to the description hierarchy. I am curious how others have handled this issue.
Jan.