mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-06-02 01:41:12 +00:00
Fix XIB 5 <string> processing to replace previously decoded object
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/branches/gnustep_testplant_branch@40304 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
43709beb7c
commit
c5d54b5aa8
1 changed files with 5 additions and 0 deletions
|
@ -2285,6 +2285,7 @@ didStartElement: (NSString*)elementName
|
||||||
{
|
{
|
||||||
id object = [super objectForXib: element];
|
id object = [super objectForXib: element];
|
||||||
|
|
||||||
|
// If no object check other possibilities related to XIB 5...
|
||||||
if (object == nil)
|
if (object == nil)
|
||||||
{
|
{
|
||||||
NSString *elementName = [element type];
|
NSString *elementName = [element type];
|
||||||
|
@ -2334,6 +2335,10 @@ didStartElement: (NSString*)elementName
|
||||||
options: NSDataBase64DecodingIgnoreUnknownCharacters];
|
options: NSDataBase64DecodingIgnoreUnknownCharacters];
|
||||||
object = AUTORELEASE([[NSString alloc] initWithData: data encoding: NSUTF8StringEncoding]);
|
object = AUTORELEASE([[NSString alloc] initWithData: data encoding: NSUTF8StringEncoding]);
|
||||||
RELEASE(data);
|
RELEASE(data);
|
||||||
|
|
||||||
|
// Replace previous object...
|
||||||
|
if ([element attributeForKey: @"id"])
|
||||||
|
[decoded setObject: object forKey: [element attributeForKey: @"id"]];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue