mirror of
https://github.com/gnustep/libs-base.git
synced 2025-06-01 01:01:03 +00:00
Bugfix in +isKindOfClass: - conform to spec.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@4668 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
1fb12b088c
commit
40ae94ff1a
2 changed files with 8 additions and 9 deletions
|
@ -1,3 +1,9 @@
|
|||
Wed Jul 28 15:53:00 1999 Richard Frith-Macdonald <richard@brainstorm.co.uk>
|
||||
|
||||
* Source/NSObject.h: ([+isKindOfClass:]) Fixed to return NO except
|
||||
when both the argument and the receiver are NSObject - as specified
|
||||
in the MacOS-X documentation. Thanks to Helge for pointing this out.
|
||||
|
||||
Mon Jul 26 21:22:00 1999 Richard Frith-Macdonald <richard@brainstorm.co.uk>
|
||||
|
||||
Fix cStrings to use unsigned char throughout - to avoid problems
|
||||
|
|
|
@ -782,15 +782,8 @@ static BOOL double_release_check_enabled = NO;
|
|||
|
||||
+ (BOOL) isKindOfClass: (Class)aClass
|
||||
{
|
||||
Class class;
|
||||
|
||||
for (class = self;
|
||||
class != Nil;
|
||||
class = class_get_super_class (class))
|
||||
{
|
||||
if (class == aClass)
|
||||
if (aClass == [NSObject class])
|
||||
return YES;
|
||||
}
|
||||
return NO;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue