[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: bug in comparison of NSCells
From: |
Benhur Stein |
Subject: |
Re: bug in comparison of NSCells |
Date: |
Fri, 26 Sep 2003 11:10:39 -0300 |
Hello Benhur!
Hi David!
Interesting indeed. I've just checked on OS 4.2 and also had it
confirmed
for OS X that NSAttributedString doesn't implement -compare: Right
now I'm
leaning towards changing the implementation of NSCell-compare: to:
...
return [[self stringValue] compare: [(NSCell*)otherCell
stringValue]];
I like the idea, but -stringValue do not seem to be in openstep for
NSString
and NSAttributedString. Maybe -description would be a better option?
But one good thing is, that we did find this bug, as these cells
are
currently compared by the location of their _contents in memory.
Yes, I had always wondered why my cells were so strangely ordered...
Cheers,
Benhur