From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: Event mechanisms for GUI's
Date: Wed, 27 Sep 2006 10:10:50 +0200
Date: 2006-09-27T10:10:49+02:00 [thread overview]
Message-ID: <sfmulbgyin8r.1s9sh8k6klylf.dlg@40tude.net> (raw)
In-Reply-To: 1159291684.625821.216400@h48g2000cwc.googlegroups.com
On 26 Sep 2006 10:28:04 -0700, Lucretia wrote:
[...]
> So, there would possibly be 3 types: observer (abstract tagged),
> subject (tagged), listener (interface). Then the control (e.g. a
> window) would then have to implement an "Add_<whatever>_Listener" per
> event type, which would add a <whatever>_Listener to a
> <whatever>_Observer. Seems overly complex to me.
The mechanisms themselves are not so important as composability of.
Messages are not, as Windows perfectly illustrates. Events are even less.
And if publisher/subscriber looks too complex to you, then, well, the thing
you have described as complex is in fact just an oversimplification of what
really needed. Consider bidirectional publisher/subscriber relations, data
consistency, timing constraints issues, etc.
Also don't forget about clean separation of actions and notifications.
Button_Click vs. On_Button_Click. Hierarchy of events (Hover_Event vs.
Mouse_Move) and actions.
The bottom line, it is not simple.
--
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de
prev parent reply other threads:[~2006-09-27 8:10 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-09-26 17:28 Event mechanisms for GUI's Lucretia
2006-09-26 20:39 ` Jeffrey R. Carter
2006-09-26 23:18 ` tmoran
2006-09-27 3:02 ` Jeffrey R. Carter
2006-09-27 4:26 ` tmoran
2006-09-27 5:39 ` Jeffrey R. Carter
2006-09-27 6:21 ` Lucretia
2006-09-27 21:29 ` Jeffrey R. Carter
2006-09-27 23:05 ` Randy Brukardt
2006-09-28 3:47 ` Jeffrey R. Carter
2006-09-28 4:15 ` tmoran
2006-09-29 3:16 ` Randy Brukardt
2006-10-14 19:25 ` Lucretia
2006-10-15 1:22 ` Jeffrey R. Carter
2006-10-15 2:29 ` Lucretia
2006-10-16 4:11 ` Jeffrey R. Carter
2006-10-19 14:22 ` Lucretia
2006-10-19 15:04 ` Dmitry A. Kazakov
2006-10-19 20:18 ` Jeffrey R. Carter
2006-10-19 21:51 ` Lucretia
2006-10-19 22:01 ` Lucretia
2006-10-20 4:48 ` Jeffrey R. Carter
2006-10-15 13:53 ` Ed Falis
2006-10-16 4:19 ` Jeffrey R. Carter
2006-10-14 19:44 ` Lucretia
2006-09-27 8:10 ` Dmitry A. Kazakov [this message]
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox