Convert to new Coder scheme. Use -initWithCoder instead

of +newWithCoder where appropriate.  Remove arguments typed
(Coder*).  Replace +_newCollectionWithCoder with
-_initCollectionWithCoder.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@333 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Andrew McCallum 1995-04-09 01:53:53 +00:00
parent 779629a90d
commit 0dc629b0ae
29 changed files with 257 additions and 211 deletions

View file

@ -1,5 +1,5 @@
/* Implementation for Objective-C Collection object
Copyright (C) 1993,1994 Free Software Foundation, Inc.
Copyright (C) 1993,1994, 1995 Free Software Foundation, Inc.
Written by: R. Andrew McCallum <mccallum@gnu.ai.mit.edu>
Date: May 1993
@ -1218,17 +1218,17 @@ for info about latest version.",
return licenseString;
}
- (void) encodeWithCoder: (Coder*)aCoder
- (void) encodeWithCoder: aCoder
{
[self _encodeCollectionWithCoder:aCoder];
[self _encodeContentsWithCoder:aCoder];
}
+ newWithCoder: (Coder*)aCoder
- initWithCoder: aCoder
{
id newCollection = [self _newCollectionWithCoder:aCoder];
[newCollection _decodeContentsWithCoder:aCoder];
return newCollection;
[self _initCollectionWithCoder:aCoder];
[self _decodeContentsWithCoder:aCoder];
return self;
}
@end
@ -1236,17 +1236,17 @@ for info about latest version.",
@implementation Collection (ArchivingHelpers)
- (void) _encodeCollectionWithCoder: (Coder*) aCoder
- (void) _encodeCollectionWithCoder: aCoder
{
[super encodeWithCoder:aCoder];
// there are no instance vars;
return;
}
+ _newCollectionWithCoder: (Coder*) aCoder
- _initCollectionWithCoder: aCoder
{
// there are no instance vars;
return [super newWithCoder:aCoder];
return [super initWithCoder:aCoder];
}
- _writeInit: (TypedStream*)aStream