Hi Damien,
here is a description that can be found in Pier:
PUUser class>>descriptionFullName
^ MAStringDescription new
parameterName: 'full-name';
accessor: #fullName;
beReadonly;
beHidden;
yourself
The write selector #fullName: (with the $:) is not defined in PUUser.
It is probably not a problem, but I wanted to know if it would not be
safer to write the following instead:
The description is read-only, so the write accessor is never used anyway.
PUUser class>>descriptionFullName
...
accessor: (MAAccessor read: #fullName);
...
what do you think?'
The #read: and #write constructor methods are leftovers from very old
Magritte versions. They should not be used any longer (and I removed
them just now). The accessors shouldn't know about readonly or not,
only if the object can be read and can be written (physically).
Thanks for pointing out.
Lukas
--
Lukas Renggli
www.lukas-renggli.ch