From 59928442a95563ea2246fdebb7c85316e8428729 Mon Sep 17 00:00:00 2001 From: "gtm.daemon" Date: Tue, 8 Sep 2009 17:45:27 +0000 Subject: [Author: dmaclach] Get rid of ObjC 2ism for compiling on Tiger. R=thomasvl,alcor DELTA=2 (1 added, 0 deleted, 1 changed) --- AppKit/GTMUILocalizer.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'AppKit/GTMUILocalizer.m') diff --git a/AppKit/GTMUILocalizer.m b/AppKit/GTMUILocalizer.m index 4143825..efdfb92 100644 --- a/AppKit/GTMUILocalizer.m +++ b/AppKit/GTMUILocalizer.m @@ -119,7 +119,8 @@ } - (void)localizeToolbar:(NSToolbar *)toolbar { - for (NSToolbarItem *item in [toolbar items]) { + NSToolbarItem *item; + GTM_FOREACH_OBJECT(item, [toolbar items]) { NSString *label = [item label]; if (label) { label = [self localizedStringForString:label]; -- cgit v1.2.3