Thanks Lukas.. I looked in the class you mentioned but didn't see any
of the code you
show below.. Perhaps my version is older or whatever.. I did poke
around on your
site at a handful of projects but didn't see anything doing the same
sort of thing I'm
trying to do (I was specifically looking for code that subclasses
and goes from there.. Perhaps I'm going about it wrong..
I've got a glorified user record that has the typical address info but
also has other
fields such as security questions and other stuff.. What I've got in
my old (non-Magritte)
code was to wrap divs around certain areas of the layout (address info
in a div and then other areas are wrapped in another div) to get the
formatting I want via
css.. Is there some other way? Sorry for being a pain in the rear,
but I feel a bit lost on
how to proceed.. Thx!
On Jul 27, 2008, at 12:45 PM, Lukas Renggli wrote:
On Jul 27, 2008, at 17:31 , Richard E. Flower wrote:
> I'm trying to follow "Possibility 3" from the Magritte tutorial (page
> 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
> 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).
SmallWiki, Magritte, Pier and Related Tools ...