<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
Bob,
<p>That looks like a dumb paste error on my part.
<p>It should not be there.&nbsp; Here's how I think it should look:
<p><tt>setCategory: newCategory</tt>
<br><tt>&nbsp;"Change the currently selected category. We must also compute
the table</tt>
<br><tt>&nbsp;of contents and message list for the new category."</tt>
<br><tt>&nbsp;| messageCount |</tt>
<br><tt>&nbsp;currentCategory _ newCategory.</tt>
<br><tt>&nbsp;newCategory isNil</tt>
<br><tt>&nbsp; ifTrue: [currentMessages _ currentMsgID _ nil.</tt>
<br><tt>&nbsp;&nbsp; self class includeStatusPane</tt>
<br><tt>&nbsp;&nbsp;&nbsp; ifTrue: [status _ nil]]</tt>
<br><tt>&nbsp; ifFalse: [currentMessages _ self filteredMessagesIn: newCategory.</tt>
<br><tt>&nbsp;&nbsp; messageCount _ currentMessages size.</tt>
<br><tt>&nbsp;&nbsp; messageCount > self maxMessagesToDisplay</tt>
<br><tt>&nbsp;&nbsp;&nbsp; ifTrue: [self messages: self maxMessagesToDisplay
from: messageCount.</tt>
<br><tt>&nbsp;&nbsp;&nbsp;&nbsp; currentMessages _ currentMessages copyLast:
self maxMessagesToDisplay]</tt>
<br><tt>&nbsp;&nbsp;&nbsp; ifFalse: [self messages: messageCount from:
messageCount].</tt>
<br><tt>&nbsp;&nbsp; self cacheTOC].</tt>
<br><tt>&nbsp;self changed: #category.</tt>
<br><tt>&nbsp;self changed: #tocEntryList.</tt>
<br><tt>&nbsp;self changed: #tocEntry.</tt>
<br><tt>&nbsp;self changed: #messageText.</tt>
<br><tt>&nbsp;self changed: #status.</tt>
<br><tt>&nbsp;self changed: #outBoxStatus</tt>
<p>&nbsp;- Steve
<br>&nbsp;
<p>Bob Arning wrote:
<blockquote TYPE=CITE>Steve,
<p>I have taken these changes into the internal update stream, but there
remains a reference to &lt;currentTOC> in Celeste>>setCategory:, but &lt;currentTOC>
is undeclared. Shall I remove the refernce, or is this a bigger problem?
<p>Cheers,
<br>Bob</blockquote>

<p>--
<br>The real romance is out ahead and yet to come. The computer revolution
<br>hasn't started yet. Don't be misled by the enormous flow of money into
<br>bad defacto standards for unsophisticated buyers using poor adaptations
<br>of incomplete ideas. -Alan Kay
<br>--
<br>&nbsp;</html>