Events, announcements, etc.

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Events, announcements, etc.

Schwab,Wilhelm K
Hello all,

I know there has been a fair amount of discussion of event mechanisms; I have not been able to follow all of it, and have probably forgotten most of what I did manage to absorb.  That said, I _think_ I am fairly flexible as long as there is some way to trigger events and get messages sent to interested parties.

Dolphin calls uses selectors such as #trigger: and #trigger:with:.  Pharo has methods called #triggerEvent:, etc.  Is that done for a specific reason?  Am I walking into any traps by forwarding them to #trigger: and friends?

Bill




_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Reply | Threaded
Open this post in threaded view
|

Re: Events, announcements, etc.

Stéphane Ducasse

On Aug 28, 2009, at 11:08 PM, Schwab,Wilhelm K wrote:

> Hello all,
>
> I know there has been a fair amount of discussion of event  
> mechanisms; I have not been able to follow all of it, and have  
> probably forgotten most of what I did manage to absorb.  That said,  
> I _think_ I am fairly flexible as long as there is some way to  
> trigger events and get messages sent to interested parties.
>
> Dolphin calls uses selectors such as #trigger: and #trigger:with:.  
> Pharo has methods called #triggerEvent:, etc.  Is that done for a  
> specific reason?  Am I walking into any traps by forwarding them to  
> #trigger: and friends?
I do not think so.
Announcement is nice because you manipulate objects.

Stef

>
> Bill
>
>
>
>
> _______________________________________________
> Pharo-project mailing list
> [hidden email]
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Reply | Threaded
Open this post in threaded view
|

Re: Events, announcements, etc.

Schwab,Wilhelm K
Stef,

Thanks for your input/reassurance.

Vassili Bykov has a nice blog enty (Nov 2005) on announcements, and after skimming that, I have a much better sense (hopefully a correct one<g>) for announcements.  Given that #trigger:with: can carry arbitrary information, it seems that announcements are a smaller change relative to events than events were to depencies of the MVC era - I'm still trying to forget about the latter.

Thanks!

Bill


-----Original Message-----
From: [hidden email] [mailto:[hidden email]] On Behalf Of Stéphane Ducasse
Sent: Saturday, August 29, 2009 10:58 AM
To: [hidden email]
Subject: Re: [Pharo-project] Events, announcements, etc.


On Aug 28, 2009, at 11:08 PM, Schwab,Wilhelm K wrote:

> Hello all,
>
> I know there has been a fair amount of discussion of event mechanisms;
> I have not been able to follow all of it, and have probably forgotten
> most of what I did manage to absorb.  That said, I _think_ I am fairly
> flexible as long as there is some way to trigger events and get
> messages sent to interested parties.
>
> Dolphin calls uses selectors such as #trigger: and #trigger:with:.  
> Pharo has methods called #triggerEvent:, etc.  Is that done for a
> specific reason?  Am I walking into any traps by forwarding them to
> #trigger: and friends?
I do not think so.
Announcement is nice because you manipulate objects.

Stef

>
> Bill
>
>
>
>
> _______________________________________________
> Pharo-project mailing list
> [hidden email]
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project

_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project