Fix NSFormCell NSContents decode for XIB5

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/branches/gnustep_testplant_branch@40421 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Marcian Lytwyn 2017-03-27 17:23:47 +00:00
parent 3a6d9f829d
commit fb5309e5f6

View file

@ -38,6 +38,7 @@
#import "AppKit/NSButtonCell.h"
#import "AppKit/NSCell.h"
#import "AppKit/NSClipView.h"
#import "AppKit/NSFormCell.h"
#import "AppKit/NSImage.h"
#import "AppKit/NSMatrix.h"
#import "AppKit/NSMenu.h"
@ -2168,6 +2169,10 @@ didStartElement: (NSString*)elementName
{
NSWarnMLog(@"called for a class that is NOT a sub-class of NSCell - class: %@", NSStringFromClass(class));
}
else if ([class isSubclassOfClass: [NSFormCell class]])
{
object = [element attributeForKey: @"stringValue"];
}
else
{
// Try the title attribute first as it's the common encoding...