(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:
Andrew McCallum 1996-01-26 19:49:48 +00:00
parent 0a3c61226f
commit 23dc00a211

View file

@ -302,3 +302,22 @@ exc_return_null(arglist_t f)
}
@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