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/


_______________________________________________
Bug-gnustep mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-gnustep

Reply via email to