<div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="Ih2E3d"><br>
</div>No, that is wrong. &nbsp;You may be thinking of GemStone, which indexes the<br>
values of instance-variables. &nbsp;Magma indexes the return value of the<br>
method denoted by the indexed attribute. &nbsp;Changes in variables have no<br>
bearing on updates, you have to send #noteOldKeysFor:.</blockquote><div><br>Perhaps I didn&#39;t express the idea correctly. I meant Magma updates automacally indexes with match an instance variable. Indexes wich may change by a value answered by a method must be updated manually (using #noteOldKeysFor:). I&#39;m quite sure an index was not updated for thise reason, while the others were.<br>
&nbsp;</div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
You never want to use an index that can only have two values.<br>
Instead, you would simply have two collections, one for the true&#39;s,<br>
the other for the falses..<br>
<br></blockquote></div><br>I don&#39;t get your point. Do you mean I might divide the collection (once) so half of the objects are in &quot;true state&quot; and the others in &quot;false state&quot;? That&#39;s not possible, since I have many state conditions for one single object. Even if I had only one state, it&#39;s not very confortable to divide things that are thougth as bound. I&#39;d have to consider that this particulars objects are divided in two, while others are not.<br>
Or do you mean, I have to persist the objects in different collections, each pair of collection correspoding to a true-false condition.?<br>I think this is not very nice. And the problem of the singularity of one kind of objects persists.<br>
<br>Regards <br>Norberto<br>