mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-19 20:11:47 +00:00
Include gnustep/base/Archiver.h.
([Coder +archivedDataWithRootObject:]): Use Archiver class, not NSArchiver, it matters because now the two classes handle forward references differently. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1479 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
1f0051d810
commit
e16a142cde
1 changed files with 2 additions and 1 deletions
|
@ -37,6 +37,7 @@
|
|||
#include <gnustep/base/TextCStream.h>
|
||||
#include <gnustep/base/BinaryCStream.h>
|
||||
#include <gnustep/base/StdioStream.h>
|
||||
#include <gnustep/base/Archiver.h>
|
||||
#include <Foundation/NSException.h>
|
||||
#include <Foundation/NSGeometry.h>
|
||||
#include <Foundation/NSData.h>
|
||||
|
@ -337,7 +338,7 @@ static BOOL debug_coder = NO;
|
|||
+ (NSData*) archivedDataWithRootObject: (id)rootObject
|
||||
{
|
||||
id d = [[NSMutableData alloc] init];
|
||||
id a = [[NSArchiver alloc] initForWritingWithMutableData:d];
|
||||
id a = [[Archiver alloc] initForWritingWithMutableData:d];
|
||||
[a encodeRootObject:rootObject];
|
||||
return [d autorelease];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue