mirror of
https://github.com/gnustep/libs-base.git
synced 2025-06-01 09:02:01 +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
f6293dd808
commit
542fb72c06
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>
|
2011-03-01 Richard Frith-Macdonald <rfm@gnu.org>
|
||||||
|
|
||||||
* Source/NSKeyValueObserving.m:
|
* Source/NSKeyValueObserving.m:
|
||||||
|
|
|
@ -1690,7 +1690,7 @@ objc_create_block_classes_as_subclasses_of(Class super) __attribute__((weak));
|
||||||
*/
|
*/
|
||||||
- (BOOL) isMemberOfClass: (Class)aClass
|
- (BOOL) isMemberOfClass: (Class)aClass
|
||||||
{
|
{
|
||||||
return (object_getClass(self) == aClass) ? YES : NO;
|
return ([self class] == aClass) ? YES : NO;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue