Hi all,
I am using PSMTabBarControl in a project, but it is giving me some headaches. When I remove a tab (actually, any tab but the rightmost) from the NSTabView it is controlling, I get this error:
2007-12-18 13:48:45.753 MyApp[743:10b] *** Collection <NSCFArray: 0x13a0e0> was mutated while being enumerated.
In the demo project that comes with PSMTabBarControl, this error does not occur when removing any tab. Yet I know this error occurs when I remove a tab (which is not the rightmost tab) because when I execute the following:
"did remove tab" is never printed.
Any thoughts? Thanks.
I am using PSMTabBarControl in a project, but it is giving me some headaches. When I remove a tab (actually, any tab but the rightmost) from the NSTabView it is controlling, I get this error:
2007-12-18 13:48:45.753 MyApp[743:10b] *** Collection <NSCFArray: 0x13a0e0> was mutated while being enumerated.
In the demo project that comes with PSMTabBarControl, this error does not occur when removing any tab. Yet I know this error occurs when I remove a tab (which is not the rightmost tab) because when I execute the following:
Code:
NSLog(@"will remove tab");
[tabView removeTabViewItem:tabViewItem];
NSLog(@"did remove tab");
"did remove tab" is never printed.
Any thoughts? Thanks.