Issue 31 in maccode: PSMTabBarControl - Exception while animating

3 views
Skip to first unread message

codesite...@google.com

unread,
Dec 11, 2008, 11:06:29 AM12/11/08
to mac...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 31 by binarynights: PSMTabBarControl - Exception while animating
http://code.google.com/p/maccode/issues/detail?id=31

When rearranging tabs it crashes often with the folowing exception:
*** Canceling drag because exception 'NSGenericException' (reason '***
Collection <NSCFSet:
0x168333d0> was mutated while being enumerated.') was raised during a
dragging session
Somehow I can't reproduce this with the example app but with my app it
always happens.
Could be that I create the PSMTabBarControl programatically, but I'm not
sure...

Anyway, I could fix this by copying the NSMutableSet before enumerating.
Hope this helps.

- (void)animateDrag:(NSTimer *)timer
{
NSEnumerator *e = [[_participatingTabBars copy] objectEnumerator];
....
}

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

Reply all
Reply to author
Forward
0 new messages