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
MAContainerComponent
and goes from there.. Perhaps I'm going about it wrong..
MAContainerComponent only triggers (see renderContentOn:) the
component renderer (MAComponentRenderer). The component renderer knows
how to layout the components of the individual descriptions
(subclasses of MAElementComponent). This is the actual place where the
data is read and written, according to the displayed editor.
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
is wrapped
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!
Yes, I understand. That's what #cssClass: is used for. It is not an
extra DIV that is wrapped around the description, but it is enough to
do anything to the layout.
Cheers,
Lukas
--
Lukas Renggli
http://www.lukas-renggli.ch