I'm having an issue with a simplified MVC implementation.

I have a 'model' class which parses XML and dispatches a 'build' event when 
finished parsing.

I have a 'view' class which has a reference to this model class via composition 
and is also registered as a listener

When the view receives the 'build' event it creates arrays from the object data.
So far so good.
lets call one of these arrays 'a_colors'


What I would like to do is 'extend' or sublass the view class and have a 
refrence to this a_colors array.

If I trace out 'a_colors' in the constructor of the subclassit is undefined.

Obviously a_colors doesn't exist yet when the subclass is intsnatiated since we 
have to wait for the build event from out model class.

What is the best OOP way to resolve this?

I'd like to avoid registering EVERY subclass as a listener to the model...I 
only want to create the data arrays once....in the View class


Any help would be extremely well received !
Jim Bachalo

[e] jbach at bitstream.ca
[c] 416.668.0034
[w] www.bitstream.ca
--------------------------------------------
"...all improvisation is life in search of a style."
             - Bruce Mau,'LifeStyle'
_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to