Revision: 29677
          http://sourceforge.net/p/bibdesk/svn/29677
Author:   hofman
Date:     2025-10-06 14:48:50 +0000 (Mon, 06 Oct 2025)
Log Message:
-----------
use fast enumeration

Modified Paths:
--------------
    trunk/bibdesk/Base.lproj/BibDocument.xib
    trunk/bibdesk/BibDocument_UI.m
    trunk/bibdesk/NSMenu_BDSKExtensions.m

Modified: trunk/bibdesk/Base.lproj/BibDocument.xib
===================================================================
--- trunk/bibdesk/Base.lproj/BibDocument.xib    2025-10-06 09:39:05 UTC (rev 
29676)
+++ trunk/bibdesk/Base.lproj/BibDocument.xib    2025-10-06 14:48:50 UTC (rev 
29677)
@@ -50,7 +50,7 @@
             <rect key="frame" x="0.0" y="0.0" width="518" height="250"/>
             <clipView key="contentView" id="Cwk-iE-Ppe">
                 <rect key="frame" x="0.0" y="0.0" width="518" height="250"/>
-                <autoresizingMask key="autoresizingMask"/>
+                <autoresizingMask key="autoresizingMask" widthSizable="YES" 
heightSizable="YES"/>
                 <subviews>
                     <tableView focusRingType="none" 
horizontalCompressionResistancePriority="250" 
verticalCompressionResistancePriority="250" allowsExpansionToolTips="YES" 
columnAutoresizingStyle="none" alternatingRowBackgroundColors="YES" 
autosaveColumns="NO" typeSelect="NO" rowHeight="16" headerView="101624" 
viewBased="YES" id="101585" customClass="BDSKMainTableView">
                         <rect key="frame" x="0.0" y="25" width="518" 
height="225"/>

Modified: trunk/bibdesk/BibDocument_UI.m
===================================================================
--- trunk/bibdesk/BibDocument_UI.m      2025-10-06 09:39:05 UTC (rev 29676)
+++ trunk/bibdesk/BibDocument_UI.m      2025-10-06 14:48:50 UTC (rev 29677)
@@ -1029,7 +1029,7 @@
     else if (menu == [groupOutlineView menu])
         [self updateGroupTableMenu:menu];
     else if (menu == sharingMenu)
-        [self updateSharingMenu:menu];
+        [self updateSharingMenu:menu]; 
 }
 
 #pragma mark SplitView delegate

Modified: trunk/bibdesk/NSMenu_BDSKExtensions.m
===================================================================
--- trunk/bibdesk/NSMenu_BDSKExtensions.m       2025-10-06 09:39:05 UTC (rev 
29676)
+++ trunk/bibdesk/NSMenu_BDSKExtensions.m       2025-10-06 14:48:50 UTC (rev 
29677)
@@ -67,9 +67,7 @@
 
 - (void)addItemsFromMenu:(NSMenu *)other;
 {
-    NSUInteger i, count = [other numberOfItems];
-    for(i = 0; i < count; i++){
-        NSMenuItem *otherItem = [other itemAtIndex:i];
+    for (NSMenuItem *otherItem in [other itemArray]) {
         NSMenuItem *anItem = [otherItem copy];
         if ([[otherItem view] respondsToSelector:@selector(target)])
             [(id)[anItem view] setTarget:[(id)[otherItem view] target]];

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



_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit

Reply via email to