mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 09:04:13 +00:00
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:
parent
ae9543d528
commit
9c97415d69
2 changed files with 8 additions and 1 deletions
|
@ -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:
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue