From a1cd144d7b6698c57602f1452a3e55114952ddf4 Mon Sep 17 00:00:00 2001 From: mccallum Date: Tue, 13 Feb 1996 01:50:03 +0000 Subject: [PATCH] ([Coder -decodeObject]): Return the object. ([Coder -initForReadingWithData:]): New method. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@896 72102866-910b-0410-8b05-ffd578937521 --- Source/Coder.m | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Source/Coder.m b/Source/Coder.m index 9a680fe47..06af1aa64 100644 --- a/Source/Coder.m +++ b/Source/Coder.m @@ -1528,6 +1528,7 @@ exc_return_null(arglist_t f) /* xxx This won't work for decoding forward references!!! */ id o; [self decodeObjectAt: &o withName: NULL]; + return o; } - (id) decodePropertyList @@ -1600,6 +1601,13 @@ exc_return_null(arglist_t f) return self; } +- (id) initForReadingWithData: (NSData*)data +{ + id ret = [[self class] newReadingFromStream: data]; + [self release]; + return ret; +} + /* Archiving Data */ + (NSData*) archivedDataWithRootObject: (id)rootObject