Index: Source/NSConnection.m =================================================================== RCS file: /cvsroot/gnustep/gnustep/core/base/Source/NSConnection.m,v retrieving revision 1.116 diff -u -r1.116 NSConnection.m --- Source/NSConnection.m 8 Jul 2003 01:10:48 -0000 1.116 +++ Source/NSConnection.m 14 Jul 2003 23:47:57 -0000 @@ -494,6 +494,16 @@ */ recvPort = [NSPort port]; } + else if (![recvPort isMemberOfClass: [sendPort class]]) + { + /* + We can only use the port of the default connection for + connections using the same port class. For other port classes, + we must use a receiving port of the same class as the sending + port, so we allocate one here. + */ + recvPort = [[sendPort class] port]; + } con = existingConnection(recvPort, sendPort); if (con == nil) {