[Seaside] Brushes and state

James Foster Smalltalk at JGFoster.net
Thu Jun 18 14:30:33 UTC 2009


I did a Seaside package for Google Maps. Check out http://seaside.gemstone.com/ss/GoogleMaps.html 
. If you'd like to contribute to that project just register as a  
developer and I'll add you to the project.


On Jun 18, 2009, at 5:51 AM, Mariano Montone wrote:

> Hello!,
>            I'm implementing an API for rendering Google Maps. I've  
> decided to implement it as a brush. That's because I'm just  
> generating javascript code. But now I have a problem: when adding  
> support for callbacks, I need to hold some state; for example, the  
> map the callback refers to. But I think brushes are not meant to  
> hold state, that is something left for the components mechanism,  
> isn't it? So I would like to know what would be the correct way of  
> implementing it in the framework. Should I implement maps as  
> components, or should I add state to my brushes; I may hold a state  
> in the callback block too, but I don't think that's good.
> Thanks!
> Mariano
> _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside

More information about the seaside mailing list