mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 08:41:03 +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
4b01ae6a3f
commit
a1cd144d7b
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!!! */
|
/* xxx This won't work for decoding forward references!!! */
|
||||||
id o;
|
id o;
|
||||||
[self decodeObjectAt: &o withName: NULL];
|
[self decodeObjectAt: &o withName: NULL];
|
||||||
|
return o;
|
||||||
}
|
}
|
||||||
|
|
||||||
- (id) decodePropertyList
|
- (id) decodePropertyList
|
||||||
|
@ -1600,6 +1601,13 @@ exc_return_null(arglist_t f)
|
||||||
return self;
|
return self;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
- (id) initForReadingWithData: (NSData*)data
|
||||||
|
{
|
||||||
|
id ret = [[self class] newReadingFromStream: data];
|
||||||
|
[self release];
|
||||||
|
return ret;
|
||||||
|
}
|
||||||
|
|
||||||
/* Archiving Data */
|
/* Archiving Data */
|
||||||
|
|
||||||
+ (NSData*) archivedDataWithRootObject: (id)rootObject
|
+ (NSData*) archivedDataWithRootObject: (id)rootObject
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue