Revision: 6592
          http://skim-app.svn.sourceforge.net/skim-app/?rev=6592&view=rev
Author:   hofman
Date:     2010-06-21 20:05:57 +0000 (Mon, 21 Jun 2010)

Log Message:
-----------
use fast enumeration

Modified Paths:
--------------
    trunk/SKApplicationController.m

Modified: trunk/SKApplicationController.m
===================================================================
--- trunk/SKApplicationController.m     2010-06-18 09:52:53 UTC (rev 6591)
+++ trunk/SKApplicationController.m     2010-06-21 20:05:57 UTC (rev 6592)
@@ -136,10 +136,7 @@
     [[NSApp mainMenu] localizeStringsFromTable:@"MainMenu"];
     
     NSMenu *viewMenu = [[[NSApp mainMenu] itemAtIndex:VIEW_MENU_INDEX] 
submenu];
-    NSInteger i, count = [viewMenu numberOfItems];
-    
-    for (i = 0; i < count; i++) {
-        NSMenuItem *menuItem = [viewMenu itemAtIndex:i];
+    for (NSMenuItem *menuItem in [viewMenu itemArray]) {
         if ([menuItem action] == @selector(changeLeftSidePaneState:) || 
[menuItem action] == @selector(changeRightSidePaneState:)) 
             [menuItem setIndentationLevel:1];
     }


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to