Hi Philipee, thanks for responding to my post. For example, in Shaffer's tutorial, he did something similar to the following:<div><br> </div><div>WAComponent subclass: #PersonalInformationView<br><div><br class="webkit-block-placeholder">
</div><div>model</div><div> ^model</div><div><br class="webkit-block-placeholder"></div><div>model</div><div> model := anObject</div><div><br class="webkit-block-placeholder"></div><div>WAComponent subclass: #AddressBook
</div><div><br class="webkit-block-placeholder"></div><div>edit: aPerson </div><div> |view|</div><div> view := PersonalInformationView new.</div><div> view model: aPerson</div><div> self call: view.</div><div><br class="webkit-block-placeholder">
</div><div>Thus, I take it that one needs to have accessors on the view if you're wanting to modify an instance of a model. Now, each renderContentOn: represents a single view.</div><div><br class="webkit-block-placeholder">
</div><div>-Conrad</div><div><br> </div><div>On 8/29/07, <b class="gmail_sendername">Philippe Marschall</b> <<a href="mailto:philippe.marschall@gmail.com">philippe.marschall@gmail.com</a>> wrote:</div><div><div><div>
<blockquote class="gmail_quote" style="margin:0;margin-left:0.8ex;border-left:1px #ccc solid;padding-left:1ex">2007/8/29, Conrad Taylor <<a href="mailto:conradwt@gmail.com">conradwt@gmail.com</a>>:<br>> Hi, I have created a subclass of WAComponent. Also, I have a class that
<br>> represents a model and is a subclass of Object. Thus, I was wondering,<br>> what's the best way to connect the my model to my component? BTW, I have<br>> read the C. David Shaffer's tutorial, "Interlude: Cleaning up the
<br>> PersonalInformationView" and I'm just trying to see what the best approach<br>> for this. Well, thanks in advance.<br><br>In general the view components directly reference the model, e.g. from<br>an instance variable.
<br><br>Cheers<br>Philippe<br><br>> -Conrad<br>><br>><br>><br>><br>><br>> _______________________________________________<br>> Seaside mailing list<br>> <a href="mailto:Seaside@lists.squeakfoundation">
Seaside@lists.squeakfoundation</a>.org<br>> <a href="http://lists.squeakfoundation">http://lists.squeakfoundation</a>.org/cgi-bin/mailman/listinfo/seaside<br>><br>><br>_______________________________________________
<br>Seaside mailing list<br><a href="mailto:Seaside@lists.squeakfoundation">Seaside@lists.squeakfoundation</a>.org<br><a href="http://lists.squeakfoundation">http://lists.squeakfoundation</a>.org/cgi-bin/mailman/listinfo/seaside
<br></blockquote></div><br></div></div></div>