mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-24 17:28:59 +00:00
(test_fref): Make ARRAY a NSMutableArray, not a NSArray.
([SubFoo -encodeWithCoder:]): Add printf. ([Foo -encodeWithCoder:]): Likewise. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1430 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
b6640ad777
commit
f2f065fbb2
1 changed files with 3 additions and 1 deletions
|
@ -55,6 +55,7 @@ static int decode_substitutes;
|
|||
|
||||
- (void) encodeWithCoder: coder
|
||||
{
|
||||
printf ("In [SubFoo encodeWithCoder:]\n");
|
||||
[super encodeWithCoder: coder];
|
||||
#if GNU_ARCHIVING
|
||||
[coder encodeObjectReference: super_foo
|
||||
|
@ -119,6 +120,7 @@ static int decode_substitutes;
|
|||
|
||||
- (void) encodeWithCoder: coder
|
||||
{
|
||||
printf ("In [Foo encodeWithCoder:]\n");
|
||||
[super encodeWithCoder: coder];
|
||||
[coder encodeObject: sub_foo];
|
||||
[coder encodeValueOfObjCType: @encode(int)
|
||||
|
@ -165,7 +167,7 @@ test_fref ()
|
|||
printf ("Test encoding of forward references\n");
|
||||
decode_substitutes = 0;
|
||||
|
||||
array = [[NSArray alloc] init];
|
||||
array = [[NSMutableArray alloc] init];
|
||||
foo = [[Foo alloc] init];
|
||||
[foo setLabel: 4];
|
||||
sub_foo = [[SubFoo alloc] initWithSuperFoo: foo label: 3];
|
||||
|
|
Loading…
Reference in a new issue