[maccode commit] r281 - Mutating while enumerating is Not Supported

0 views
Skip to first unread message

codesite...@google.com

unread,
Apr 21, 2009, 6:43:29 PM4/21/09
to mac...@googlegroups.com
Author: catfish.man
Date: Tue Apr 21 15:35:03 2009
New Revision: 281

Modified:
trunk/Utilities/PSMTabBarControl/source/PSMTabDragAssistant.m

Log:
Mutating while enumerating is Not Supported

Modified: trunk/Utilities/PSMTabBarControl/source/PSMTabDragAssistant.m
==============================================================================
--- trunk/Utilities/PSMTabBarControl/source/PSMTabDragAssistant.m (original)
+++ trunk/Utilities/PSMTabBarControl/source/PSMTabDragAssistant.m Tue Apr
21 15:35:03 2009
@@ -679,7 +679,7 @@

- (void)animateDrag:(NSTimer *)timer
{
- NSEnumerator *e = [_participatingTabBars objectEnumerator];
+ NSEnumerator *e = [[[_participatingTabBars copy] autorelease]
objectEnumerator];
PSMTabBarControl *tabBar;
while ( (tabBar = [e nextObject]) ) {
[self calculateDragAnimationForTabBar:tabBar];

Reply all
Reply to author
Forward
0 new messages