Revision: 15660
          http://sourceforge.net/p/skim-app/code/15660
Author:   hofman
Date:     2025-07-15 14:21:49 +0000 (Tue, 15 Jul 2025)
Log Message:
-----------
enumerate copy of array

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

Modified: trunk/SKMainWindowController.m
===================================================================
--- trunk/SKMainWindowController.m      2025-07-15 14:18:49 UTC (rev 15659)
+++ trunk/SKMainWindowController.m      2025-07-15 14:21:49 UTC (rev 15660)
@@ -1078,7 +1078,7 @@
         // remove the current annotations
         [pdfView setCurrentAnnotation:nil];
         [self commitEditing];
-        for (NSWindowController *wc in [[self document] windowControllers]) {
+        for (NSWindowController *wc in [[[self document] windowControllers] 
copy]) {
             if ([wc isNoteWindowController])
                 [wc close];
         }
@@ -1436,8 +1436,7 @@
 
 - (void)removeAllObjectsFromNotes {
     if ([notes count]) {
-        NSArray *wcs = [[[self document] windowControllers] copy];
-        for (NSWindowController *wc in wcs) {
+        for (NSWindowController *wc in [[[self document] windowControllers] 
copy]) {
             if ([wc isNoteWindowController]) {
                 [wc discardEditing];
                 [wc close];

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



_______________________________________________
Skim-app-commit mailing list
Skim-app-commit@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to