mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-13 09:31:00 +00:00
([NSGArchiver -encodeObjectReference:]): New method.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1503 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
3f10d36cbc
commit
3b51fcdff1
1 changed files with 12 additions and 0 deletions
|
@ -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
|
- (unsigned) _coderCreateReferenceForObject: anObj
|
||||||
{
|
{
|
||||||
if ([cstream class] == [NSGArchiverNullCStream class])
|
if ([cstream class] == [NSGArchiverNullCStream class])
|
||||||
|
@ -198,6 +208,8 @@
|
||||||
|
|
||||||
#if USE_OPENSTEP_STYLE_FORWARD_REFERENCES
|
#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
|
- (BOOL) _createReferenceBeforeInit
|
||||||
{
|
{
|
||||||
return YES;
|
return YES;
|
||||||
|
|
Loading…
Reference in a new issue