Send -close to Archiver, not old -closeCoder.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1080 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
mccallum 1996-03-06 14:49:39 +00:00
parent 72d1e52e76
commit ad7c8a4a55

View file

@ -42,11 +42,11 @@ int main()
want human-readable "Text"-style, instead of "Binary"-style
coding. */
archiver = [[Archiver alloc] initForWritingToFile: @"./textcoding.txt"
withCStreamClass: [TextCStream class]];
withCStreamClass: [TextCStream class]];
[archiver encodeObject: array
withName:@"Test Array"];
withName: @"Test Array"];
[archiver encodeObject: dictionary
withName:@"Test Dictionary"];
withName: @"Test Dictionary"];
/* Release the objects that were coded */
[array release];
@ -56,7 +56,7 @@ int main()
We must separate the idea of "closing" a stream and
"deallocating" a stream because of delays in deallocation due to
-autorelease. */
[archiver closeCoding];
[archiver close];
[archiver release];