mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
Revert last commit. The actual Apple behaviour is what libobjc2 used to do, not what it does now. It's incredibly ugly, and should not have been allowed: It makes NSObject the superclass of NSObject's metaclass, but does NOT do the same transform for any other classes.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32038 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
a8cd2e588c
commit
0d28d838fd
1 changed files with 1 additions and 4 deletions
|
@ -1119,10 +1119,7 @@ objc_create_block_classes_as_subclasses_of(Class super) __attribute__((weak));
|
|||
*/
|
||||
- (Class) class
|
||||
{
|
||||
id cls = object_getClass(self);
|
||||
if (class_isMetaClass(cls))
|
||||
return (Class)self;
|
||||
return cls;
|
||||
return object_getClass(self);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue