mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 08:41: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
|
@ -4611,8 +4611,18 @@ static NSFileManager *fm = nil;
|
|||
{
|
||||
if ([aCoder allowsKeyedCoding])
|
||||
{
|
||||
NSString *string = (NSString*)[(NSKeyedUnarchiver*)aCoder
|
||||
_decodePropertyListForKey: @"NS.string"];
|
||||
NSString *string = nil;
|
||||
|
||||
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];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue