[Seaside] Re: Menu component - communicating with root component
Ramon Leon
ramon.leon at allresnet.com
Mon Apr 21 17:11:44 UTC 2008
> >
> So what about drivers that are parked around the corner, they
> cant even see the light physically, yet they get the event!
>
> Does this then mean that every driver has to check every
> object in the entire world, for line of sight?
>
> Keith
If you use a global announcer, yes, which is why it isn't always
appropriate. It's up to you to decide when the convenience outweighs the
cost of having to ignore events. The alternative is to create more
announcers and then deal with knowing where to register interest.
Ultimately, every object can be its own announcer firing its own events and
interested parties then have to be wired up very intricately to the exact
instances they're interested in which can be quite a pain. Which way on the
scale you lean, one announcer, many announcers, or every object its own
announcer all depends on particulars only you know.
Ramon Leon
http://onsmalltalk.com
More information about the seaside
mailing list