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:
David Chisnall 2011-02-10 18:40:18 +00:00
parent a8cd2e588c
commit 0d28d838fd

View file

@ -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);
}
/**