mirror of
https://github.com/gnustep/libs-base.git
synced 2025-06-01 17:12:03 +00:00
Get -methodSignatureForSelector: right again in case the method is
called on a class object and the old runtime is used. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32689 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
7d51172308
commit
9aafcfb7ad
2 changed files with 19 additions and 6 deletions
|
@ -1,4 +1,10 @@
|
||||||
2011-03-32 Riccardo Mottola <rm@gnu.org>
|
2011-03-22 Wolfgang Lux <wolfgang.lux@gmail.com>
|
||||||
|
|
||||||
|
* Source/NSObject.m (-methodSignatureForSelector:): Get method
|
||||||
|
right again in case the method is called on a class object and the
|
||||||
|
old runtime is used.
|
||||||
|
|
||||||
|
2011-03-21 Riccardo Mottola <rm@gnu.org>
|
||||||
|
|
||||||
* Tests/base/NSNumberFormatter/basic.m:
|
* Tests/base/NSNumberFormatter/basic.m:
|
||||||
Added new test.
|
Added new test.
|
||||||
|
|
|
@ -1508,8 +1508,15 @@ objc_create_block_classes_as_subclasses_of(Class super);
|
||||||
struct objc_slot *slot = objc_get_slot(object_getClass(self), aSelector);
|
struct objc_slot *slot = objc_get_slot(object_getClass(self), aSelector);
|
||||||
types = slot->types;
|
types = slot->types;
|
||||||
#else
|
#else
|
||||||
struct objc_method *mth =
|
struct objc_method *mth;
|
||||||
GSGetMethod(c, aSelector, GSObjCIsInstance(self), YES);
|
if (GSObjCIsInstance(self))
|
||||||
|
{
|
||||||
|
mth = GSGetMethod(object_getClass(self), aSelector, YES, YES);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
mth = GSGetMethod((Class)self, aSelector, NO, YES);
|
||||||
|
}
|
||||||
types = method_getTypeEncoding (mth);
|
types = method_getTypeEncoding (mth);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue