[Seaside] asSet asOrderedCollection

Esteban A. Maringolo emaringolo at gmail.com
Thu May 18 15:31:18 UTC 2006

On 5/18/06, mbreitha <max at bouh.org> wrote:
> Hello,
> I would like to know if is possible to delete doubledbloom in an
> orederedCollection when it's composed by Objects. I've tried with asSet
> but it doesn't work with Objects.
> thanks for your answer

What kind of objects are you trying to condense in a Set?

If they are your domain objects, check the implementation of #= and
#hash. (Look for other implementator to understand its behavior).

As a rule of thumb I recommend you that each time you implement #= in
your object also implement #hash using the same criteria.

Perhaps your problem is that your objects doesn't implement the method
with selector #= (nor #hash).

To play with, instance two of your objects and compare them using:
objectA = objectB
objectA hash = objectB hash

If both are equal, those evaluations must answer true.


Esteban A. Maringolo
eMaringolo at gmail.com

More information about the Seaside mailing list