mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-22 20:50:44 +00:00
Use macro for fast enumeration
This commit is contained in:
parent
77202f52e1
commit
93a0fc46ea
1 changed files with 3 additions and 1 deletions
|
@ -42,6 +42,7 @@
|
|||
#import "AppKit/NSNib.h"
|
||||
#import "AppKit/NSNibLoading.h"
|
||||
#import "GNUstepGUI/GSModelLoaderFactory.h"
|
||||
#import "GSFastEnumeration.h"
|
||||
|
||||
@implementation NSBundle (NSBundleAdditions)
|
||||
+ (BOOL) loadNibFile: (NSString*)fileName
|
||||
|
@ -175,10 +176,11 @@
|
|||
if (success && topLevelObjects && [table objectForKey: NSNibTopLevelObjects])
|
||||
{
|
||||
*topLevelObjects = [table objectForKey: NSNibTopLevelObjects];
|
||||
for (NSObject *obj in *topLevelObjects)
|
||||
FOR_IN(NSObject*, obj, *topLevelObjects)
|
||||
{
|
||||
AUTORELEASE(obj);
|
||||
}
|
||||
END_FOR_IN(*topLevelObjects);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue