mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 16:30:41 +00:00
Fix keyed decoding for GSMutableArray and GSPlaceholderArray.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33026 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
df0421b216
commit
995276efc8
2 changed files with 14 additions and 7 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
2011-05-12 Fred Kiefer <FredKiefer@gmx.de>
|
||||||
|
|
||||||
|
* Source/GSArray.m: Fix keyed decoding for GSMutableArray and GSPlaceholderArray.
|
||||||
|
|
||||||
2011-05-09 Richard Frith-Macdonald <rfm@gnu.org>
|
2011-05-09 Richard Frith-Macdonald <rfm@gnu.org>
|
||||||
|
|
||||||
* Source/NSXMLParser.m: treat unknown/undefined encodings as utf-8
|
* Source/NSXMLParser.m: treat unknown/undefined encodings as utf-8
|
||||||
|
|
|
@ -535,10 +535,7 @@ static Class GSInlineArrayClass;
|
||||||
{
|
{
|
||||||
if ([aCoder allowsKeyedCoding])
|
if ([aCoder allowsKeyedCoding])
|
||||||
{
|
{
|
||||||
NSArray *array = [(NSKeyedUnarchiver*)aCoder _decodeArrayOfObjectsForKey:
|
self = [super initWithCoder: aCoder];
|
||||||
@"NS.objects"];
|
|
||||||
|
|
||||||
[self initWithArray: array];
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -1123,9 +1120,15 @@ static Class GSInlineArrayClass;
|
||||||
if ([aCoder allowsKeyedCoding])
|
if ([aCoder allowsKeyedCoding])
|
||||||
{
|
{
|
||||||
NSArray *array = [(NSKeyedUnarchiver*)aCoder _decodeArrayOfObjectsForKey:
|
NSArray *array = [(NSKeyedUnarchiver*)aCoder _decodeArrayOfObjectsForKey:
|
||||||
@"NS.objects"];
|
@"NS.objects"];
|
||||||
|
if (array != nil)
|
||||||
return RETAIN(array);
|
{
|
||||||
|
return RETAIN(array);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
return [super initWithCoder: aCoder];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue