Hi, is there a better way than having accessors on the view? &nbsp;If so, please explain.<div><br class="webkit-block-placeholder"></div><div>Thanks,</div><div><br class="webkit-block-placeholder"></div><div>-Conrad<br><div><br>
<div><span class="gmail_quote">On 8/29/07, <b class="gmail_sendername">Philippe Marschall</b> &lt;<a href="mailto:philippe.marschall@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">philippe.marschall@gmail.com
</a>&gt; wrote:</span><blockquote class="gmail_quote" style="margin:0;margin-left:0.8ex;border-left:1px #ccc solid;padding-left:1ex">2007/8/29, Conrad Taylor &lt;<a href="mailto:conradwt@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
conradwt@gmail.com</a>&gt;:
<br>&gt; Hi Philipee, thanks for responding to my post.&nbsp;&nbsp;For example, in Shaffer&#39;s<br>&gt; tutorial, he did something similar to the following:<br>&gt;<br>&gt;<br>&gt; WAComponent subclass: #PersonalInformationView<br>

&gt;<br>&gt;<br>&gt; model<br>&gt;&nbsp;&nbsp; ^model<br>&gt;<br>&gt; model<br>&gt;&nbsp;&nbsp; model := anObject<br>&gt;<br>&gt; WAComponent subclass: #AddressBook<br>&gt;<br>&gt; edit:&nbsp;&nbsp;aPerson<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;|view|<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;view := PersonalInformationView new.
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;view model:&nbsp;&nbsp;aPerson<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;self call: view.<br>&gt;<br>&gt;<br>&gt; Thus, I take it that one needs to have accessors on the view if you&#39;re<br>&gt; wanting to modify an instance of a model.<br><br>Not necessarily. It doesn&#39;t really matter where the view gets the
<br>model from but accessors are probably the most common way.<br><br>&gt; Now, each renderContentOn:<br>&gt; represents a single view.<br><br>Each instance of a&nbsp;&nbsp;component class represents a single view.<br><br>Cheers<br>

Philippe<br><br>&gt; -Conrad<br>&gt;<br>&gt;<br>&gt; On 8/29/07, Philippe Marschall &lt;<a href="mailto:philippe.marschall@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">philippe.marschall@gmail.com
</a>&gt; wrote:<br>&gt;<br>&gt;<br>&gt; &gt;<br>&gt; &gt; 2007/8/29, Conrad Taylor &lt;
<a href="mailto:conradwt@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">conradwt@gmail.com</a>&gt;:<br>&gt; &gt; &gt; Hi, I have created a subclass of WAComponent.&nbsp;&nbsp;Also, I have a class that
<br>&gt; &gt; &gt; represents a model and is a subclass of Object.&nbsp;&nbsp;Thus, I was wondering,
<br>&gt; &gt; &gt; what&#39;s the best way to connect the my model to my component?&nbsp;&nbsp;BTW, I<br>&gt; have<br>&gt; &gt; &gt; read the C. David Shaffer&#39;s tutorial, &quot;Interlude:&nbsp;&nbsp;Cleaning up the<br>&gt; &gt; &gt; PersonalInformationView&quot; and I&#39;m just trying to see what the best
<br>&gt; approach<br>&gt; &gt; &gt; for this.&nbsp;&nbsp;Well, thanks in advance.<br>&gt; &gt;<br>&gt; &gt; In general the view components directly reference the model, e.g. from<br>&gt; &gt; an instance variable.<br>&gt; &gt;<br>
&gt; &gt; Cheers
<br>&gt; &gt; Philippe<br>&gt; &gt;<br>&gt; &gt; &gt; -Conrad<br>&gt; &gt; &gt;<br>&gt; &gt; &gt;<br>&gt; &gt; &gt;<br>&gt; &gt; &gt;<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; _______________________________________________<br>

&gt; &gt; &gt; Seaside mailing list<br>&gt; &gt; &gt; <a href="mailto:Seaside@lists.squeakfoundation" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">Seaside@lists.squeakfoundation</a>.org<br>&gt; &gt; &gt;
<br>&gt; <a href="http://lists.squeakfoundation" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://lists.squeakfoundation
</a>.org/cgi-bin/mailman/listinfo/seaside<br>&gt; &gt; &gt;<br>&gt; &gt; &gt;<br>&gt; &gt; _______________________________________________<br>&gt; &gt; Seaside mailing list<br>&gt; &gt; <a href="mailto:Seaside@lists.squeakfoundation" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">

Seaside@lists.squeakfoundation</a>.org<br>&gt; &gt;<br>&gt; <a href="http://lists.squeakfoundation" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://lists.squeakfoundation</a>.org/cgi-bin/mailman/listinfo
/seaside<br>&gt; &gt;<br>&gt;<br>&gt;<br>&gt; ______________________________
_________________<br>&gt; Seaside mailing list<br>&gt; <a href="mailto:Seaside@lists.squeakfoundation" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">Seaside@lists.squeakfoundation</a>.org<br>&gt; 
<a href="http://lists.squeakfoundation" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://lists.squeakfoundation</a>
.org/cgi-bin/mailman/listinfo/seaside<br>&gt;<br>&gt;<br>_______________________________________________<br>Seaside mailing list<br><a href="mailto:Seaside@lists.squeakfoundation" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
Seaside@lists.squeakfoundation</a>.org<br>
<a href="http://lists.squeakfoundation" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://lists.squeakfoundation</a>.org/cgi-bin/mailman/listinfo/seaside<br></blockquote></div><br></div>
</div>