Make some changes to XPaths to make things a little more efficient.

This commit is contained in:
Gregory John Casamento 2020-07-05 22:56:25 -04:00
parent 647dd1095b
commit 2cd0585079

View file

@ -609,7 +609,7 @@ static NSStoryboard *__mainStoryboard = nil;
NSMapTable *mapTable = [NSMapTable strongToWeakObjectsMapTable];
NSArray *connectionsArray = [xmlIn nodesForXPath: @"//connections"
error: NULL];
NSArray *array = [xmlIn nodesForXPath: @"//objects"
NSArray *array = [xmlIn nodesForXPath: @"//objects[1]"
error: NULL];
NSXMLElement *objects = [array objectAtIndex: 0]; // get the "objects" section
NSArray *controllers = [objects nodesForXPath: @"windowController"