mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 00:30:53 +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
14
ChangeLog
14
ChangeLog
|
@ -1,8 +1,14 @@
|
||||||
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.
|
||||||
|
|
||||||
2011-03-18 Nicola Pero <nicola.pero@meta-innovation.com>
|
2011-03-18 Nicola Pero <nicola.pero@meta-innovation.com>
|
||||||
|
|
||||||
* Documentation/GNUmakefile (CODING-STANDARDS_TEXI_FILES,
|
* Documentation/GNUmakefile (CODING-STANDARDS_TEXI_FILES,
|
||||||
|
@ -10,12 +16,12 @@
|
||||||
Removed.
|
Removed.
|
||||||
(DOCUMENT_TEXT_NAME, TOP_DOC_FILES): Fixed names of files to
|
(DOCUMENT_TEXT_NAME, TOP_DOC_FILES): Fixed names of files to
|
||||||
generate; for example, INSTALL instead of install.
|
generate; for example, INSTALL instead of install.
|
||||||
|
|
||||||
2011-03-18 Riccardo Mottola <rm@gnu.org>
|
2011-03-18 Riccardo Mottola <rm@gnu.org>
|
||||||
|
|
||||||
* Source/NSSortDescriptor.m:
|
* Source/NSSortDescriptor.m:
|
||||||
Use Cocoa values for the coding keys.
|
Use Cocoa values for the coding keys.
|
||||||
|
|
||||||
2011-03-18 Richard Frith-Macdonald <rfm@gnu.org>
|
2011-03-18 Richard Frith-Macdonald <rfm@gnu.org>
|
||||||
|
|
||||||
* Source/Additions/GSObjCRuntime.m: Use old API to work around bug in
|
* Source/Additions/GSObjCRuntime.m: Use old API to work around bug in
|
||||||
|
|
|
@ -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