mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
(_doEncodeObject:isByCopy:): get byCopy flag correctly.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@41 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
e9ad6de57f
commit
4dde0ec429
1 changed files with 12 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue