KVO tweaks

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32443 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
rfm 2011-03-03 17:33:57 +00:00
parent 6d21d67c23
commit a949b90b75
3 changed files with 24 additions and 13 deletions

View file

@ -1057,11 +1057,12 @@ objc_registerClassPair(Class cls)
{
return; // Already registered
}
if (Nil == existing)
else if (Nil != existing)
{
fprintf(stderr, "*** ERROR *** function objc_registerClassPair() called "
"for class pair with name ('%s') of existing class.\n",
class_getName(cls));
return;
}
// Initialize the dispatch table for the class and metaclass.