Revision: 28773
          http://sourceforge.net/p/bibdesk/svn/28773
Author:   hofman
Date:     2024-02-19 13:02:57 +0000 (Mon, 19 Feb 2024)
Log Message:
-----------
Don't implement NSFastEnumeration for field collection, as it returns temporary 
non-retained objects

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

Modified: trunk/bibdesk/BDSKFieldCollection.m
===================================================================
--- trunk/bibdesk/BDSKFieldCollection.m 2024-02-19 10:02:21 UTC (rev 28772)
+++ trunk/bibdesk/BDSKFieldCollection.m 2024-02-19 13:02:57 UTC (rev 28773)
@@ -143,14 +143,4 @@
     return self;
 }
 
-- (NSUInteger)countByEnumeratingWithState:(NSFastEnumerationState *)state 
objects:(id __unsafe_unretained *)stackbuf count:(NSUInteger)len {
-    NSUInteger i, current, count = [fieldNames count];
-    for (i = 0, current = state->state; current < count && i < len; i++, 
current++)
-        stackbuf[i] = [fieldCollection fieldForName:[fieldNames 
objectAtIndex:current]];
-    state->state = current;
-    state->itemsPtr = stackbuf;
-       state->mutationsPtr = &mutations;
-    return i;
-}
-
 @end

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