Fix keyed archiving error

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@24273 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2006-12-27 15:30:27 +00:00
parent 05a4bb2829
commit 69e0e20182
2 changed files with 23 additions and 0 deletions

View file

@ -1,3 +1,7 @@
2006-12-27 Richard Frith-Macdonald <rfm@gnu.org>
* Source/GSString.m: Fix keyed archiving error.
2006-12-27 Chris B. Vetter
* Headers/Foundation/NSNetServices.h: New class

View file

@ -46,6 +46,7 @@
#include "Foundation/NSValue.h"
#include "Foundation/NSDebug.h"
#include "Foundation/NSObjCRuntime.h"
#include "Foundation/NSKeyedArchiver.h"
#include "GNUstepBase/GSObjCRuntime.h"
#include <limits.h>
@ -2843,6 +2844,12 @@ transmute(GSStr self, NSString *aString)
- (void) encodeWithCoder: (NSCoder*)aCoder
{
if ([aCoder allowsKeyedCoding])
{
[(NSKeyedArchiver*)aCoder _encodePropertyList: self forKey: @"NS.string"];
return;
}
[aCoder encodeValueOfObjCType: @encode(unsigned) at: &_count];
if (_count > 0)
{
@ -3149,6 +3156,12 @@ agree, create a new GSCInlineString otherwise.
- (void) encodeWithCoder: (NSCoder*)aCoder
{
if ([aCoder allowsKeyedCoding])
{
[(NSKeyedArchiver*)aCoder _encodePropertyList: self forKey: @"NS.string"];
return;
}
[aCoder encodeValueOfObjCType: @encode(unsigned) at: &_count];
if (_count > 0)
{
@ -3599,6 +3612,12 @@ NSAssert(_flags.free == 1 && _zone != 0, NSInternalInconsistencyException);
- (void) encodeWithCoder: (NSCoder*)aCoder
{
if ([aCoder allowsKeyedCoding])
{
[(NSKeyedArchiver*)aCoder _encodePropertyList: self forKey: @"NS.string"];
return;
}
[aCoder encodeValueOfObjCType: @encode(unsigned) at: &_count];
if (_count > 0)
{