Add fast enum for the second loop

This commit is contained in:
Gregory John Casamento 2020-07-05 22:31:59 -04:00
parent 2ed95a86b9
commit 647dd1095b
2 changed files with 3 additions and 15 deletions

View file

@ -114,7 +114,7 @@ NSApplicationMain(int argc, const char **argv)
}
else
{
NSLog(_(@"Storyboard is blank or nil, unable to load."));
NSLog(@"Storyboard is blank or nil, unable to load.");
}
}

View file

@ -389,14 +389,12 @@ static NSStoryboard *__mainStoryboard = nil;
{
NSXMLElement *doc = [[NSXMLElement alloc] initWithName: @"document"];
NSArray *children = [e children];
NSEnumerator *ce = [children objectEnumerator];
NSXMLElement *child = nil;
NSXMLDocument *document = nil;
NSString *sceneId = [[e attributeForName: @"sceneID"] stringValue];
NSString *controllerId = nil;
// Copy children...
while ((child = [ce nextObject]) != nil)
FOR_IN(NSXMLElement*, child, children)
{
if ([[child name] isEqualToString: @"point"] == YES)
continue; // go on if it's point, we don't use that in the app...
@ -583,17 +581,6 @@ static NSStoryboard *__mainStoryboard = nil;
}
}
// Delete extra firstResponder...
/*
NSArray *ar = [document nodesForXPath: @"//customObject[@sceneMemberID=\"firstResponder\"]"
error: NULL];
if ([ar count] > 0)
{
id node = [ar objectAtIndex: 0];
[node detach];
}
*/
// Create document...
[_scenesMap setObject: document
forKey: sceneId];
@ -607,6 +594,7 @@ static NSStoryboard *__mainStoryboard = nil;
RELEASE(document);
}
END_FOR_IN(children);
}
END_FOR_IN(array);
}