mirror of
https://github.com/gnustep/libs-base.git
synced 2025-06-01 17:12:03 +00:00
* Source/NSString.m (-initWithCoder:): Handle format used for XIB
encoding. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29962 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
b6b9375f4d
commit
fb017f644a
2 changed files with 16 additions and 2 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
2010-03-15 Fred Kiefer <FredKiefer@gmx.de>
|
||||||
|
|
||||||
|
* Source/NSString.m (-initWithCoder:): Handle format used for XIB encoding.
|
||||||
|
|
||||||
2010-03-14 Adam Fedor <fedor@mallory>
|
2010-03-14 Adam Fedor <fedor@mallory>
|
||||||
|
|
||||||
* Source/NSHTTPCookie.m (+requestHeaderFieldsWithCookies:):
|
* Source/NSHTTPCookie.m (+requestHeaderFieldsWithCookies:):
|
||||||
|
|
|
@ -4611,8 +4611,18 @@ static NSFileManager *fm = nil;
|
||||||
{
|
{
|
||||||
if ([aCoder allowsKeyedCoding])
|
if ([aCoder allowsKeyedCoding])
|
||||||
{
|
{
|
||||||
NSString *string = (NSString*)[(NSKeyedUnarchiver*)aCoder
|
NSString *string = nil;
|
||||||
_decodePropertyListForKey: @"NS.string"];
|
|
||||||
|
if ([aCoder containsValueForKey: @"NS.string"])
|
||||||
|
{
|
||||||
|
string = (NSString*)[(NSKeyedUnarchiver*)aCoder
|
||||||
|
_decodePropertyListForKey: @"NS.string"];
|
||||||
|
}
|
||||||
|
else if ([aCoder containsValueForKey: @"NS.bytes"])
|
||||||
|
{
|
||||||
|
string = (NSString*)[(NSKeyedUnarchiver*)aCoder
|
||||||
|
decodeObjectForKey: @"NS.bytes"];
|
||||||
|
}
|
||||||
|
|
||||||
self = [self initWithString: string];
|
self = [self initWithString: string];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue