Add mapping to XmlKeyMapTable for NSBackroundColors

This commit is contained in:
Gregory John Casamento 2022-09-24 07:49:13 -04:00
parent f1552faaee
commit 94f616436f

View file

@ -326,6 +326,7 @@ static NSArray *XmlBoolDefaultYes = nil;
@"beginningViews", @"NSStackViewBeginningContainer", // NSStackView
@"middleViews", @"NSStackViewMiddleContainer",
@"endViews", @"NSStackViewEndContainer",
@"primaryBackgroundColor", @"NSBackgroundColors",
nil];
RETAIN(XmlKeyMapTable);
@ -3549,10 +3550,6 @@ didStartElement: (NSString*)elementName
{
hasValue = [self containsValueForKey: [XmlKeyMapTable objectForKey: key]];
}
else if ([@"NSBackgroundColors" isEqualToString: key])
{
hasValue = [currentElement elementForKey: @"primaryBackgroundColor"] != nil;
}
else if ([@"NSCollectionViewLayout" isEqualToString: key])
{
hasValue = [currentElement elementForKey: @"collectionViewLayout"] != nil;