<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">If you trace the package history you can see that I tried a variety of approaches, including using a component. I settled on making GoogleMap a brush (subclass of WADivTag).&nbsp;See GoogleMaps-jgf.21.mcz for an example of calling back to Smalltalk.<div><div><div><div><div><br></div><div>James</div><div><br></div><div>On Jun 18, 2009, at 7:47 AM, Mariano Montone wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Thanks James!<br><br>I think I looked at your code once, but you didn't have callbacks and implemented it only with brushes , didn't you? If you didn't, do you have callbacks? And how did you implemented them? I'm supporting callbacks now and am considering creating a component.<br> <br>Cheers<br><br>Mariano<br><br><br><div class="gmail_quote">On Thu, Jun 18, 2009 at 11:30 AM, James Foster <span dir="ltr">&lt;<a href="mailto:Smalltalk@jgfoster.net">Smalltalk@jgfoster.net</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> Mariano,<br> <br> I did a Seaside package for Google Maps. Check out <a href="http://seaside.gemstone.com/ss/GoogleMaps.html" target="_blank">http://seaside.gemstone.com/ss/GoogleMaps.html</a>. If you'd like to contribute to that project just register as a developer and I'll add you to the project.<br> <br> James<div><div></div><div class="h5"><br> <br> On Jun 18, 2009, at 5:51 AM, Mariano Montone wrote:<br> <br> </div></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><div class="h5"> Hello!,<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 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.<br> <br> Thanks!<br> <br> Mariano<br> <br> <br></div></div> _______________________________________________<br> seaside mailing list<br> <a href="mailto:seaside@lists.squeakfoundation.org" target="_blank">seaside@lists.squeakfoundation.org</a><br> <a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br> </blockquote> <br> _______________________________________________<br> seaside mailing list<br> <a href="mailto:seaside@lists.squeakfoundation.org" target="_blank">seaside@lists.squeakfoundation.org</a><br> <a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br> </blockquote></div><br> _______________________________________________<br>seaside mailing list<br><a href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a><br>http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside<br></blockquote></div><br></div></div></div></body></html>