mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-29 16:01:38 +00:00
* Source/GSFFCallInvocation.m
(gs_method_for_receiver_and_selector): Replace usage of class_get_instance/class_method with GSGetInstance/ClassMethod and Method_t with GSMethod. (gs_find_by_receiver_best_typed_sel): Ditto. (GSInvocationCallback): Ditto. ([GSFFCallInvocation -invokeWithTarget:]): Ditto. * Source/GSFFIInvocation.m (gs_method_for_receiver_and_selector): Ditto. (gs_find_by_receiver_best_typed_sel): Ditto. (GSFFIInvocationCallback): Ditto. ([GSFFIInvocation -invokeWithTarget:]): Ditto. * Source/NSConnection.m ([NSConnection -_service_typeForSelector:]): Ditto. * Source/NSInvocation.m ([NSInvocation -invokeWithTarget:]): Ditto. * Source/NSObject.m ([NSObject +instanceMethodSignatureForSelector:]): Ditto. ([NDObject -methodSignatureForSelector:]): Ditto. ([NSObject +descriptionForInstanceMethod:]): Ditto. ([NSOnject -descriptionForMethod:]: Ditto. * Source/NSProxy.m ([NSProxy +methodSignatureForSelector:]): Ditto. ([NSProxy -methodSignatureForSelector:]): Ditto. * Source/NSDistantObject.m ([NSObject -selectorTypeForProxy:]): Ditto. ([NSDistantObject +respondsToSelector:]): Ditto. Corrected implementation to check class methods instead of instance methods. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@17016 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
2f16ecd266
commit
f6c50c154d
8 changed files with 64 additions and 34 deletions
|
@ -114,7 +114,7 @@ enum
|
|||
|
||||
+ (BOOL) respondsToSelector: (SEL)sel
|
||||
{
|
||||
return (IMP)class_get_instance_method(self, sel) != (IMP)0;
|
||||
return GSGetClassMethod(self, sel) != (GSMethod)0;
|
||||
}
|
||||
|
||||
+ (id) initWithCoder: (NSCoder*)aCoder
|
||||
|
@ -1002,7 +1002,7 @@ static inline BOOL class_is_kind_of (Class self, Class aClassObject)
|
|||
{
|
||||
#if NeXT_runtime
|
||||
{
|
||||
Method m = class_get_instance_method(isa, selector);
|
||||
Method m = GSGetInstanceMethod(isa, selector);
|
||||
if (m)
|
||||
return m->method_types;
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue