<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<font face="Georgia">His second example showed the way...<br>
<br>
</font>
<pre wrap="">self menu contentBlock: [:view| self content: view]
and then from the menu do
html anchor
        callback: [self contentBlock value: FamilyView new ];
        with: 'Family'.
</pre>
<br>
value: is the key<br>
<br>
<br>
On 10/27/11 3:34 PM, Agamemnon wrote:
<blockquote cite="mid:1319744057766-3945760.post@n4.nabble.com"
type="cite">
<pre wrap="">Norbert,
You are brilliant. Thanks. It works perfectly now. Is there any way to
have a value passed into the block? I know that the do:[] message on the
Collections object takes each item in the Collection as a value. [:anItem |
anItem doesSomething.] How would this work here?
Andrew
--
View this message in context: <a class="moz-txt-link-freetext" href="http://forum.world.st/Changing-out-components-tp3941427p3945760.html">http://forum.world.st/Changing-out-components-tp3941427p3945760.html</a>
Sent from the Seaside General mailing list archive at Nabble.com.
_______________________________________________
seaside mailing list
<a class="moz-txt-link-abbreviated" href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a>
<a class="moz-txt-link-freetext" href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a>
</pre>
</blockquote>
</body>
</html>