mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
([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
This commit is contained in:
parent
66e7fa2ea5
commit
6db330119c
1 changed files with 8 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue