by Peter Horan <peter@[EMAIL PROTECTED]
>
Sep 20, 2006 at 03:19 AM
iso8859-1@[EMAIL PROTECTED]
wrote:
> for a GUI I want the View/Controller to observe the Model. The
> View/Controller registers at the Model as observer. I guess there is an
> easy way to get this functionality in ISE Eiffel - for example by
> inheriting from the correct class - but I don't know which one. Can
> someone point me in the right direction?
If you are using EiffelVision 2, use the action lists associated with the
Widgets.
For example,
b: EV_BUTTON
-- Initialisation code fragment
...
button.select_actions.extend(agent set_me(button))
...
set_me(b: EV_TOGGLE_BUTTON) is
--
do
end
--
Peter Horan School of Engineering and Information Technology
peter@[EMAIL PROTECTED]
Deakin University
+61-3-5227 1234 (Voice) Geelong, Victoria 3217, AUSTRALIA
+61-3-5227 2028 (FAX) http://www.eit.deakin.edu.au/~peter
-- The Eiffel guarantee: From specification to implementation
-- (http://www.cetus-links.org/oo_eiffel.html)