mirror of
https://github.com/gnustep/libs-base.git
synced 2025-06-02 09:31:07 +00:00
Changes to comments.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@771 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
195b5cbe42
commit
6b12a75c4e
1 changed files with 2 additions and 3 deletions
|
@ -1,5 +1,5 @@
|
||||||
/* archiving class for serialization and persistance.
|
/* archiving class for serialization and persistance.
|
||||||
Copyright (C) 1995 Free Software Foundation, Inc.
|
Copyright (C) 1995, 1996 Free Software Foundation, Inc.
|
||||||
|
|
||||||
Written by: R. Andrew McCallum <mccallum@gnu.ai.mit.edu>
|
Written by: R. Andrew McCallum <mccallum@gnu.ai.mit.edu>
|
||||||
Date: March 1995
|
Date: March 1995
|
||||||
|
@ -59,7 +59,6 @@ static Class NSArchiver_concrete_class;
|
||||||
|
|
||||||
+ (NSData*) archivedDataWithRootObject: (id)rootObject
|
+ (NSData*) archivedDataWithRootObject: (id)rootObject
|
||||||
{
|
{
|
||||||
/* xxx a quick kludge implementation */
|
|
||||||
id d = [[NSMutableData alloc] init];
|
id d = [[NSMutableData alloc] init];
|
||||||
id a = [[NSArchiver alloc] initForWritingWithMutableData:d];
|
id a = [[NSArchiver alloc] initForWritingWithMutableData:d];
|
||||||
[a encodeRootObject:rootObject];
|
[a encodeRootObject:rootObject];
|
||||||
|
@ -68,7 +67,7 @@ static Class NSArchiver_concrete_class;
|
||||||
|
|
||||||
+ (BOOL) archiveRootObject: (id)rootObject toFile: (NSString*)path
|
+ (BOOL) archiveRootObject: (id)rootObject toFile: (NSString*)path
|
||||||
{
|
{
|
||||||
/* xxx a quick kludge implementation */
|
/* xxx fix this return value */
|
||||||
id d = [self archivedDataWithRootObject:rootObject];
|
id d = [self archivedDataWithRootObject:rootObject];
|
||||||
[d writeToFile:path atomically:NO];
|
[d writeToFile:path atomically:NO];
|
||||||
return YES;
|
return YES;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue