On Jul 27, 2008, at 17:31 , Richard E. Flower wrote:
I'm trying to follow "Possibility 3" from the Magritte
54) where I subclass MAContainerComponent and create my own
#renderContentOn: and override #descriptionContainer to point to my
new subclass.. The tutorial didn't really indicate how to get the
component data or other general usage -- so I figured I'd ask..
Have a look at the implementation of MAContainerComponent, it already
does what you want.
anObject readUsing: aDescription "reading"
anObject write: aValue using: aDescription "writing"
Essentially you always use the above two constructs, no matter if
anObject is a memento or a real object. You just need to know the
Also -- for future reference.. Is there an example or two that might
be good to use as references for this sort of questioning that doesn't
require pier since I'm on the VW platform? I'm a Magritte newbie and
examples are very helpful.. Thx!
There are several open-source examples on squeaksource.com
ical, ...) and source.lukas-rengli.ch (Pier, Audioscrobbler, MSE File
Format, Magritte Add-Ons, Magritte Tutorial, More Magritte Add
Ons, ...) that use Magritte, but I guess that doesn't help you much if
you are on VW. You might still want to have a look at the code though
(through the web interface).