mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 16:30:41 +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
ca428f2434
commit
96454ea1cc
1 changed files with 12 additions and 3 deletions
|
@ -325,17 +325,16 @@ static Class* NXConnectionProxyClass;
|
||||||
return o;
|
return o;
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void) _doEncodeObject: anObj
|
- (void) _doEncodeObject: anObj isByCopy: (BOOL)bc
|
||||||
{
|
{
|
||||||
BOOL f = NO;
|
BOOL f = NO;
|
||||||
Class *c;
|
Class *c;
|
||||||
id o;
|
id o;
|
||||||
|
|
||||||
assert([[self connection] class] == [NXConnection class]);
|
assert([[self connection] class] == [NXConnection class]);
|
||||||
/* xxx We have yet to set isBycopy correctly */
|
|
||||||
o = [anObj encodeRemotelyFor:(NXConnection*)[self connection]
|
o = [anObj encodeRemotelyFor:(NXConnection*)[self connection]
|
||||||
freeAfterEncoding:&f
|
freeAfterEncoding:&f
|
||||||
isBycopy:NO];
|
isBycopy:bc];
|
||||||
c = [o classForConnectedCoder:self];
|
c = [o classForConnectedCoder:self];
|
||||||
[self encodeClass:c];
|
[self encodeClass:c];
|
||||||
[c encodeObject:o withConnectedCoder:self];
|
[c encodeObject:o withConnectedCoder:self];
|
||||||
|
@ -344,4 +343,14 @@ static Class* NXConnectionProxyClass;
|
||||||
[o free];
|
[o free];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
- (void) _doEncodeBycopyObject: anObj
|
||||||
|
{
|
||||||
|
[self _doEncodeObject:anObj isByCopy:YES];
|
||||||
|
}
|
||||||
|
|
||||||
|
- (void) _doEncodeObject: anObj
|
||||||
|
{
|
||||||
|
[self _doEncodeObject:anObj isByCopy:NO];
|
||||||
|
}
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue