From 0614a58401fc3b028e5e45a5f656ec1a465966d1 Mon Sep 17 00:00:00 2001 From: Richard Frith-MacDonald Date: Wed, 30 Sep 1998 12:34:30 +0000 Subject: [PATCH] If selector types are not available, ask the NSDistantObject to get them. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@2997 72102866-910b-0410-8b05-ffd578937521 --- Source/NSConnection.m | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Source/NSConnection.m b/Source/NSConnection.m index 536d0a73e..7464b4174 100644 --- a/Source/NSConnection.m +++ b/Source/NSConnection.m @@ -1139,8 +1139,6 @@ static int messages_received_count; NSParameterAssert (is_valid); [[self retain] autorelease]; - op = [self newSendingRequestRmc]; - seq_num = [op sequenceNumber]; /* get the method types from the selector */ #if NeXT_runtime @@ -1151,9 +1149,15 @@ static int messages_received_count; #else type = sel_get_type(sel); #endif + if (type == 0 || *type == '\0') { + type = [[object methodSignatureForSelector: sel] methodType]; + } NSParameterAssert(type); NSParameterAssert(*type); + op = [self newSendingRequestRmc]; + seq_num = [op sequenceNumber]; + /* Send the types that we're using, so that the performer knows exactly what qualifiers we're using. If all selectors included qualifiers, and if I could make