mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
([NSGArchiver +initialize]): Add the behavior of the Coder class. All
other methods deleted. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@845 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
f5d1d36326
commit
c05144b3d5
1 changed files with 8 additions and 16 deletions
|
@ -1,8 +1,8 @@
|
|||
/* Concrete NSArchiver for GNUStep based on GNU Coder class
|
||||
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>
|
||||
Date: April 1995
|
||||
Created: April 1995
|
||||
|
||||
This file is part of the GNU Objective C Class Library.
|
||||
|
||||
|
@ -23,26 +23,18 @@
|
|||
|
||||
#include <objects/stdobjects.h>
|
||||
#include <Foundation/NSGArchiver.h>
|
||||
#include <Foundation/NSGCoder.h>
|
||||
#include <objects/Coder.h>
|
||||
#include <objects/behavior.h>
|
||||
|
||||
@implementation NSGArchiver
|
||||
|
||||
+ (void) initialize
|
||||
{
|
||||
static int done = 0;
|
||||
[self error:"This class not ready for business yet."];
|
||||
if (!done)
|
||||
{
|
||||
done = 1;
|
||||
class_add_behavior([NSGArchiver class], [NSGCoder class]);
|
||||
}
|
||||
if (self == [NSGArchiver class])
|
||||
class_add_behavior([NSGArchiver class], [Coder class]);
|
||||
}
|
||||
|
||||
/* This is the designated initializer */
|
||||
- (id) initForWritingWithMutableData: (NSMutableData*)mdata
|
||||
{
|
||||
//[self initEncodingOnStream:mdata];
|
||||
return self;
|
||||
}
|
||||
#define self ((Coder*)self)
|
||||
/* In case any other methods are defined here later... */
|
||||
|
||||
@end
|
||||
|
|
Loading…
Reference in a new issue