mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 16:50:58 +00:00
(Object (ConnectedCoderCallbacks)): Category methods moved here from
Coder.m. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@851 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
71001c1445
commit
57505e7118
1 changed files with 19 additions and 0 deletions
|
@ -302,3 +302,22 @@ exc_return_null(arglist_t f)
|
||||||
}
|
}
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|
||||||
|
|
||||||
|
@implementation Object (ConnectedCoderCallbacks)
|
||||||
|
|
||||||
|
/* By default, Object's encode themselves as proxies across Connection's */
|
||||||
|
- classForConnectedCoder:aRmc
|
||||||
|
{
|
||||||
|
return [[aRmc connection] proxyClass];
|
||||||
|
}
|
||||||
|
|
||||||
|
/* But if any object overrides the above method to return [Object class]
|
||||||
|
instead, the Object implementation of the coding method will actually
|
||||||
|
encode the object itself, not a proxy */
|
||||||
|
+ (void) encodeObject: anObject withConnectedCoder: aRmc
|
||||||
|
{
|
||||||
|
[anObject encodeWithCoder:aRmc];
|
||||||
|
}
|
||||||
|
|
||||||
|
@end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue