mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 16:30:41 +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
1ce32a158e
commit
68ecb226c5
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
|
- (Class) class
|
||||||
{
|
{
|
||||||
id cls = object_getClass(self);
|
return object_getClass(self);
|
||||||
if (class_isMetaClass(cls))
|
|
||||||
return (Class)self;
|
|
||||||
return cls;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue