mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 06:00:37 +00:00
Add fast enum for the second loop
This commit is contained in:
parent
2ed95a86b9
commit
647dd1095b
2 changed files with 3 additions and 15 deletions
|
@ -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.");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue