diff --git a/Source/NXConnection.m b/Source/NXConnection.m index bcf55909e..b004465d8 100644 --- a/Source/NXConnection.m +++ b/Source/NXConnection.m @@ -325,17 +325,16 @@ static Class* NXConnectionProxyClass; return o; } -- (void) _doEncodeObject: anObj +- (void) _doEncodeObject: anObj isByCopy: (BOOL)bc { BOOL f = NO; Class *c; id o; assert([[self connection] class] == [NXConnection class]); - /* xxx We have yet to set isBycopy correctly */ o = [anObj encodeRemotelyFor:(NXConnection*)[self connection] freeAfterEncoding:&f - isBycopy:NO]; + isBycopy:bc]; c = [o classForConnectedCoder:self]; [self encodeClass:c]; [c encodeObject:o withConnectedCoder:self]; @@ -344,4 +343,14 @@ static Class* NXConnectionProxyClass; [o free]; } +- (void) _doEncodeBycopyObject: anObj +{ + [self _doEncodeObject:anObj isByCopy:YES]; +} + +- (void) _doEncodeObject: anObj +{ + [self _doEncodeObject:anObj isByCopy:NO]; +} + @end