(autorelease): New method.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@22 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Andrew McCallum 1994-11-08 19:59:46 +00:00
parent 010386a9b9
commit 5996b28b79

View file

@ -28,6 +28,7 @@
#include <objects/Connection.h>
#include <objects/ConnectedCoder.h>
#include <objects/eltfuncs.h>
#include <objects/AutoreleasePool.h>
#include <assert.h>
static BOOL debugProxies = NO;
@ -341,6 +342,13 @@ static inline BOOL class_is_kind_of(CLASS self, CLASS aClassObject)
return retain_count;
}
- autorelease
{
/* xxx Problems here if the Connection goes away? */
[autorelease_class addObject:self];
return self;
}
@end
@implementation Object (ForProxy)