[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: bug in comparison of NSCells

From: David Ayers
Subject: Re: bug in comparison of NSCells
Date: Fri, 26 Sep 2003 16:17:37 +0200
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4b) Gecko/20030507

Benhur Stein wrote:

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?

... that's why I'm sending it to the NSCell's and not to the NS(Attributed)String's :-)


reply via email to

[Prev in Thread] Current Thread [Next in Thread]