From 61c2d74ec73fb054af23eaf815068beddb7fa998 Mon Sep 17 00:00:00 2001 From: Richard Frith-MacDonald Date: Tue, 9 May 2000 10:16:29 +0000 Subject: [PATCH] Method signature fix git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@6588 72102866-910b-0410-8b05-ffd578937521 --- ChangeLog | 6 ++++++ Source/NSDistantObject.m | 9 ++++++--- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 0e8d2a74e..f5ff5c279 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2000-05-09 Richard Frith-Macdonald + + * Source/NSDistantObject.m: ([-methodSignatureForSelector:]) + Fix attempting to handle creation of local method signature rather than + returning a proxy to a remote one. + 2000-05-07 Richard Frith-Macdonald * Source/NSCalendarDate.m: ([-descriptionWithCalendarFormat:locale:]) diff --git a/Source/NSDistantObject.m b/Source/NSDistantObject.m index 7ae1b013b..f7646bb55 100644 --- a/Source/NSDistantObject.m +++ b/Source/NSDistantObject.m @@ -573,13 +573,16 @@ enum - (NSMethodSignature*) methodSignatureForSelector: (SEL)aSelector { - if (_object) + if (_object != nil) { - return [_object methodSignatureForSelector: aSelector]; + NSMethodSignature *m = [_object methodSignatureForSelector: aSelector]; + const char *types = [m methodType]; + + return [NSMethodSignature signatureWithObjCTypes: types]; } else { - if (_protocol) + if (_protocol != nil) { const char *types = 0;