mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 16:30:41 +00:00
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:
parent
febfce5a16
commit
cddc14d2b4
6 changed files with 95 additions and 42 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue