bug-gnustep
[Top][All Lists]
Advanced

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

[bug #30511] the change to NSString.m in r31003 is wrong for NSString su


From: Doug Simons
Subject: [bug #30511] the change to NSString.m in r31003 is wrong for NSString subclasses
Date: Wed, 21 Jul 2010 21:23:59 +0000
User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_4; en-us) AppleWebKit/533.16 (KHTML, like Gecko) Version/5.0 Safari/533.16

URL:
  <http://savannah.gnu.org/bugs/?30511>

                 Summary: the change to NSString.m in r31003 is wrong for
NSString subclasses
                 Project: GNUstep
            Submitted by: theeggcamefirst
            Submitted on: Wed 21 Jul 2010 09:23:59 PM GMT
                Category: Base/Foundation
                Severity: 3 - Normal
              Item Group: Bug
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

This change breaks equality testing for my subclass of NSString. Two strings
which are equal (one of which is an instance of my custom subclass of
NSString, and the other an instance of GSCInlineString) now return NO to the
isEqual: method.

Perhaps what was meant was to test [aString isKindOfClass:[NSString class]]
rather than [aString isKindOfClass:[self class]]? I just tried that change and
it fixes the problem for me, but I don't understand the intent of this line.






    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?30511>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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