(encodeWithCoder:, initWithCoder:): Include call to super since

NSObject now implements these methods.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@402 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Andrew McCallum 1995-04-20 21:50:04 +00:00
parent 8e808d3bcc
commit a427755065
6 changed files with 12 additions and 13 deletions

View file

@ -89,13 +89,13 @@
// NSCoding
- (void)encodeWithCoder:(NSCoder *)coder
{
//FIXME [super encodeWithCoder:coder];
[super encodeWithCoder:coder];
[coder encodeValueOfObjCType:[self objCType] at:&data];
}
- (id)initWithCoder:(NSCoder *)coder
{
//FIXME self = [super initWithCoder:coder];
self = [super initWithCoder:coder];
[coder decodeValueOfObjCType:[self objCType] at:&data];
return self;
}

View file

@ -194,13 +194,13 @@
// NSCoding
- (void)encodeWithCoder:(NSCoder *)coder
{
//FIXME [super encodeWithCoder:coder];
[super encodeWithCoder:coder];
[coder encodeValueOfObjCType:[self objCType] at:&data];
}
- (id)initWithCoder:(NSCoder *)coder
{
//FIXME self = [super initWithCoder:coder];
self = [super initWithCoder:coder];
[coder decodeValueOfObjCType:[self objCType] at:&data];
return self;
}

View file

@ -141,8 +141,7 @@
// NSCoding
- (void)encodeWithCoder:(NSCoder *)coder
{
//FIXME [super encodeWithCoder:coder];
[super encodeWithCoder:coder];
// FIXME: Do we need to check for encoding void, void * or will
// NSCoder do this for us?
[coder encodeObject:objctype];
@ -151,7 +150,7 @@
- (id)initWithCoder:(NSCoder *)coder
{
//FIXME self = [super initWithCoder:coder];
self = [super initWithCoder:coder];
objctype = [[coder decodeObject] retain];
[coder decodeValueOfObjCType:[objctype cString] at:&data];
return self;

View file

@ -139,7 +139,7 @@ _NSFoundationUncaughtExceptionHandler(NSException *exception)
- (void)encodeWithCoder:(NSCoder *)aCoder
{
//FIXME [super encodeWithCoder:aCoder];
[super encodeWithCoder:aCoder];
[aCoder encodeObject:e_name];
[aCoder encodeObject:e_reason];
[aCoder encodeObject:e_info];
@ -147,7 +147,7 @@ _NSFoundationUncaughtExceptionHandler(NSException *exception)
- (id)initWithCoder:(NSCoder *)aDecoder
{
//FIXME self = [super initWithCoder:aDecoder];
self = [super initWithCoder:aDecoder];
e_name = [[aDecoder decodeObject] retain];
e_reason = [[aDecoder decodeObject] retain];
e_info = [[aDecoder decodeObject] retain];

View file

@ -252,12 +252,12 @@
- (void)encodeWithCoder:(NSCoder *)coder
{
//FIXME [super encodeWithCoder:coder];
[super encodeWithCoder:coder];
}
- (id)initWithCoder:(NSCoder *)coder
{
//FIXME self = [super initWithCoder:coder];
self = [super initWithCoder:coder];
return self;
}

View file

@ -159,12 +159,12 @@
- (void)encodeWithCoder:(NSCoder *)coder
{
//FIXME [super encodeWithCoder:coder];
[super encodeWithCoder:coder];
}
- (id)initWithCoder:(NSCoder *)coder
{
//FIXME self = [super initWithCoder:coder];
self = [super initWithCoder:coder];
return self;
}