I think Bob is perfectly right: the notification center is for many
aspects similar to the Signal module (api / scope wise), but it needs
a completely different implementation.
I will try to sketch something and keep the list updated on any progress.
Thank you very much for the feedback.
Giulio Cesare Solaroli
On 7/26/06, Bob Ippolito <[EMAIL PROTECTED]> wrote:
>
>
> On Jul 25, 2006, at 6:12 PM, Peter Mularien wrote:
>
> >
> >
> > Trey Stout wrote:
> >> Well my most simplistic need for it is having JS pagination
> >> widgets at
> >> the top and bottom of a table. Both of them send a NEW_PAGE
> >> signal, but
> >> it would be nice for the table to just listen to any NEW_PAGE signal,
> >> not explicitly from one of the widgets.
> >>
> >> Anywhere you have duplicated control elements I could see this
> >> being an
> >> advantage.
> >
> > true, although a global "listener" would not (IMHO) be the most
> > appropriate for that particular scenario, either. Provided you have a
> > reference to the table at the time you raise the signal, it's a simple
> > raising of the signal on the table:
> >
> > signal("myTableId", "NEW_PAGE");
> >
> > ... should work no matter where you call it from, whether it's 2 or 10
> > different controls.
> >
> > I agree that the converse isn't necessarily true, that is, a
> > hypothetical control may want to raise a signal to "anyone who cares"
> > (I think that's what one of the other posters mentioned). I could
> > potentially see this being both useful, and seriously abused. :P
>
> Sending a signal to "anyone who cares" is pretty easy, you just make
> some object that everyone knows about and use that as the source. The
> other use case of tracing a given signal by the name of the slot for
> debugging purposes would have to work differently though.
>
> -bob
>
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"MochiKit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/mochikit
-~----------~----~----~----~------~----~------~--~---