mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
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:
parent
72d1e52e76
commit
ad7c8a4a55
1 changed files with 4 additions and 4 deletions
|
@ -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];
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue