From cb8c1283927cbe02c59d098f5c26bcaca8876274 Mon Sep 17 00:00:00 2001 From: CaS Date: Fri, 4 Apr 2003 14:15:30 +0000 Subject: [PATCH] NSConnection bugfix git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@16358 72102866-910b-0410-8b05-ffd578937521 --- ChangeLog | 3 +++ Source/NSConnection.m | 1 + Testing/nsconnection.m | 1 + 3 files changed, 5 insertions(+) diff --git a/ChangeLog b/ChangeLog index 8bdafcd44..0680da1c0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -4,6 +4,9 @@ * Source/NSInvocation.m: Support the two new macros. Documented. * Testing/nsinvocation.m: Trivial tests added. * Documentation/OpenStepCompliance.gsdoc: Updated. + * Source/NSConnection.m: ([-forwardInvocation:forProxy:]) set + invocation target explicitly, in case this was called as a result + of a manual setup of the invocation rather than real forwarding. 2003-04-03 Adam Fedor diff --git a/Source/NSConnection.m b/Source/NSConnection.m index 2c5388a74..84b977164 100644 --- a/Source/NSConnection.m +++ b/Source/NSConnection.m @@ -1959,6 +1959,7 @@ static void retEncoder (DOContext *ctxt) if (debug_connection > 4) NSLog(@"building packet seq %d", ctxt.seq); + [inv setTarget: object]; outParams = [inv encodeWithDistantCoder: op passPointers: NO]; if (outParams == YES) diff --git a/Testing/nsconnection.m b/Testing/nsconnection.m index 352e36229..f8fa00d4d 100644 --- a/Testing/nsconnection.m +++ b/Testing/nsconnection.m @@ -1,3 +1,4 @@ +#define STRICT_OPENSTEP 1 #include id myServer;