mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 07:00:46 +00:00
Use fast enumeration
This commit is contained in:
parent
93fe3a260c
commit
2ed95a86b9
1 changed files with 2 additions and 3 deletions
|
@ -40,6 +40,7 @@
|
|||
#import "AppKit/NSWindow.h"
|
||||
|
||||
#import "GNUstepGUI/GSModelLoaderFactory.h"
|
||||
#import "GSFastEnumeration.h"
|
||||
|
||||
static NSStoryboard *__mainStoryboard = nil;
|
||||
|
||||
|
@ -375,8 +376,6 @@ static NSStoryboard *__mainStoryboard = nil;
|
|||
{
|
||||
NSXMLElement *docNode = [docNodes objectAtIndex: 0];
|
||||
NSArray *array = [docNode nodesForXPath: @"//scene" error: NULL];
|
||||
NSEnumerator *en = [array objectEnumerator];
|
||||
NSXMLElement *e = nil;
|
||||
NSString *customClassString = nil;
|
||||
|
||||
// Set initial view controller...
|
||||
|
@ -543,7 +542,7 @@ static NSStoryboard *__mainStoryboard = nil;
|
|||
NSXMLElement *coel = nil;
|
||||
while ((coel = [coen nextObject]) != nil)
|
||||
{
|
||||
NSXMLNode *attr = [coel attributeForName: @"sceneMemberID"];
|
||||
NSXMLNode *attr = [coel attributeForName: @"sceneMemberID"];
|
||||
if ([[attr stringValue] isEqualToString: @"firstResponder"])
|
||||
{
|
||||
NSXMLNode *customClassAttr = [coel attributeForName: @"customClass"];
|
||||
|
|
Loading…
Reference in a new issue