From 3b51fcdff16680651fb88dbe2ab4a559fd199c00 Mon Sep 17 00:00:00 2001 From: Andrew McCallum Date: Tue, 7 May 1996 01:20:22 +0000 Subject: [PATCH] ([NSGArchiver -encodeObjectReference:]): New method. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1503 72102866-910b-0410-8b05-ffd578937521 --- Source/NSGArchiver.m | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Source/NSGArchiver.m b/Source/NSGArchiver.m index b76bbabda..39326bd7d 100644 --- a/Source/NSGArchiver.m +++ b/Source/NSGArchiver.m @@ -137,6 +137,16 @@ } } +- (void) encodeObjectReference: anObject +{ + /* Be sure to do the OpenStep-style thing. */ + [self encodeConditionalObject: anObject]; +} + + + +/* For handling forward references. */ + - (unsigned) _coderCreateReferenceForObject: anObj { if ([cstream class] == [NSGArchiverNullCStream class]) @@ -198,6 +208,8 @@ #if USE_OPENSTEP_STYLE_FORWARD_REFERENCES +/* This method is called by Decoder to determine whether to add + an object to the xref table before it has been initialized. */ - (BOOL) _createReferenceBeforeInit { return YES;