Patched from mail.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@597 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
mccallum 1995-08-30 21:49:35 +00:00
parent febfce5a16
commit cddc14d2b4
6 changed files with 95 additions and 42 deletions

View file

@ -195,14 +195,18 @@
// NSCoding
- (void)encodeWithCoder:(NSCoder *)coder
{
const char *type;
[super encodeWithCoder:coder];
[coder encodeValueOfObjCType:[self objCType] at:&data];
type = [self objCType];
[coder encodeValueOfObjCType:@encode(char *) at:&type];
[coder encodeValueOfObjCType:type at:&data];
}
- (id)initWithCoder:(NSCoder *)coder
{
// This should raise an exception - Use NSValueDecoder to decode NSNumber
self = [super initWithCoder:coder];
[coder decodeValueOfObjCType:[self objCType] at:&data];
//[coder decodeValueOfObjCType:[self objCType] at:&data];
return self;
}