Revision: 28526
          http://sourceforge.net/p/bibdesk/svn/28526
Author:   hofman
Date:     2024-01-03 18:24:17 +0000 (Wed, 03 Jan 2024)
Log Message:
-----------
pass objects in stackbuf

Modified Paths:
--------------
    trunk/bibdesk/BDSKIBArray.m

Modified: trunk/bibdesk/BDSKIBArray.m
===================================================================
--- trunk/bibdesk/BDSKIBArray.m 2024-01-03 18:04:21 UTC (rev 28525)
+++ trunk/bibdesk/BDSKIBArray.m 2024-01-03 18:24:17 UTC (rev 28526)
@@ -81,12 +81,17 @@
     return object[anIndex];
 }
 
-- (NSUInteger)countByEnumeratingWithState:(NSFastEnumerationState *)state 
objects:(id *)stackbuf count:(NSUInteger)len {
+- (NSUInteger)countByEnumeratingWithState:(NSFastEnumerationState *)state 
objects:(id __unsafe_unretained *)stackbuf count:(NSUInteger)len {
     if (state->state == 0) {
         state->state = 1;
-        state->itemsPtr = object;
+        state->itemsPtr = stackbuf;
         state->mutationsPtr = &mutations;
-        return [self count];
+        NSUInteger i;
+        for (i = 0; i < 9; i++) {
+            if (object[i] == nil) break;
+            stackbuf[i] = object[i];
+        }
+        return i;
     }
     return 0;
 }

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