<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta content="text/html;charset=UTF-8" http-equiv="Content-Type"></head><body ><div style='font-size:10pt;font-family:Verdana,Arial,Helvetica,sans-serif;'>James,<div><br></div><div>Thank you. <br><div class="zmail_extra"><div id="1"><br>---- On Sat, 17 Mar 2018 23:13:09 -0400 <b>James Foster<Smalltalk@JGFoster.net></b> wrote ---- <br></div><blockquote style="border-left: 1px solid #0000FF; padding-left: 6px; margin:0 0 0 5px"><meta><div style=""><div>Hi ‘gettimothy’:</div><div><br></div>The immediate answer to your question is to use #’perform:’ like this:<div><span style="white-space: pre-wrap"> </span>html tbsAlert</div><div><span style="white-space: pre-wrap">  </span>perform: m;</div><div><span style="white-space: pre-wrap">  </span>with: [ … ].</div><div>Note, however, that use of #’perform:’ is frowned-upon in some circles and you might be encouraged to find a more “object-oriented” way to do this. </div><div><br></div><div>James<br><div><br><blockquote><div>On Mar 17, 2018, at 7:42 PM, gettimothy <<a href="mailto:gettimothy@zoho.com" target="_blank" rel="noreferrer" mailid="gettimothy%40zoho.com" subj="">gettimothy@zoho.com</a>> wrote:</div><br><div><meta><div><div style="font-size: 10pt; font-family: Verdana, Arial, Helvetica, sans-serif"><br>My apologies if this is old-hat, I have been away from Smalltalk for several years...<div><br></div><div>I would like to translate this:</div><div><br></div><div><br><blockquote style="border: 1px solid rgb(204, 204, 204); padding: 7px; background-color: rgb(245, 245, 245)"><div>html tbsAlert </div><div><span style="white-space: pre-wrap">   </span>beSuccess;</div><div><span style="white-space: pre-wrap">   </span>with: [ html strong: 'Well done!'. html text: ' You successfully read this important alert message.' ].</div><div><span style="white-space: pre-wrap">   </span></div><div><span style="white-space: pre-wrap"> </span>html tbsAlert </div><div><span style="white-space: pre-wrap">   </span>beInfo;</div><div><span style="white-space: pre-wrap">   </span>with: [ html strong: 'Heads up!'. html text: ' This alert needs your attention, but it''s not super important.' ].</div><div><br></div><div><span style="white-space: pre-wrap"> </span>html tbsAlert </div><div><span style="white-space: pre-wrap">   </span>beWarning;</div><div><span style="white-space: pre-wrap">   </span>with: [ html strong: 'Warning!'. html text: ' Best check yo self, you''re not looking too good.' ].</div><div><span style="white-space: pre-wrap">     </span></div><div><span style="white-space: pre-wrap"> </span>html tbsAlert </div><div><span style="white-space: pre-wrap">   </span>beDanger;</div><div><span style="white-space: pre-wrap">   </span>with: [ html strong: 'Oh snap!'. html text: ' Change a few things up and try submitting again.' ].</div><div> </div></blockquote><br>into something like this:</div><div><br></div><div><br><br><blockquote style="border: 1px solid rgb(204, 204, 204); padding: 7px; background-color: rgb(245, 245, 245)"><div>|tuple|</div><div><br></div><div>tuple:= #(beSuccess beInfo beWarning beDanger)</div><div><br></div><div>tuple do: [:m</div><div>      html tbsAlert </div><div><span style="white-space: pre-wrap">   </span>m;</div><div><span style="white-space: pre-wrap">   </span>with: [ html strong: 'Well done!'. html text: ' You successfully read this important alert message.' ].</div><div>]</div></blockquote></div><div><br></div><div>suggestions appreciated, thx</div></div><br></div>_______________________________________________<br>seaside mailing list<br><a href="mailto:seaside@lists.squeakfoundation.org" target="_blank" rel="noreferrer" mailid="seaside%40lists.squeakfoundation.org" subj="">seaside@lists.squeakfoundation.org</a><br><a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank" rel="noreferrer">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br></div></blockquote></div><br></div>_______________________________________________<br>seaside mailing list<br><a href="mailto:seaside@lists.squeakfoundation.org" target="_blank" rel="noreferrer" mailid="seaside%40lists.squeakfoundation.org" subj="">seaside@lists.squeakfoundation.org</a><br><a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank" rel="noreferrer">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br></div></blockquote><br></div><br></div></div><br></body></html>