On 4 Nov 2009, at 21:50, Hernán Morales Durand wrote:

> Hi, I'm using AXAnnouncements but I suppose this question is valid  
> for other implementations. In SASE (the "triggerEvent" event  
> framework) one could subscribe an event for an object specifying an  
> argument at registration time:
>
> eventSource
>   when: #eventName send: #aSelector to: anObject with: argument
>
> I've looked at Announcements and it seems this kind of registration  
> isn't supported without using blocks. Am I right?
> Before getting into details I just want to check. What people do to  
> specify an argument at registration time with Announcements?
>
> Cheers,
>
> Hernán

Your announcement is an object of your own design. You can put  
parameters as instance variables in your announcement subclass.

The default implementation does not support the ability to send  
methods to objects in the manner that you describe.
My Wandering Announcements package does have an enhancement to support  
this,
it is available in the squeaksource.com/Jetsam repository.

Keith
_______________________________________________
Pharo-project mailing list
Pharo-project@lists.gforge.inria.fr
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project

Reply via email to