minor KVO fix

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32432 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
rfm 2011-03-02 10:52:27 +00:00
parent ae9543d528
commit 9c97415d69
2 changed files with 8 additions and 1 deletions

View file

@ -1,3 +1,10 @@
2011-03-02 Richard Frith-Macdonald <rfm@gnu.org>
* Source/NSObject.m: ([-isMemberOfClass:]) test the class returned
by the -class method rather than using the runtime to get the actual
class pointer ... fixes for when one class is pretending to be
another (key value observing).
2011-03-01 Richard Frith-Macdonald <rfm@gnu.org>
* Source/NSKeyValueObserving.m:

View file

@ -1690,7 +1690,7 @@ objc_create_block_classes_as_subclasses_of(Class super) __attribute__((weak));
*/
- (BOOL) isMemberOfClass: (Class)aClass
{
return (object_getClass(self) == aClass) ? YES : NO;
return ([self class] == aClass) ? YES : NO;
}
/**