Re: Collection was mutated while being enumerated
Re: Collection was mutated while being enumerated
- Subject: Re: Collection was mutated while being enumerated
- From: Ricky Sharp <email@hidden>
- Date: Wed, 31 Oct 2007 15:20:06 -0500
On Oct 31, 2007, at 2:51 PM, Sean McBride wrote:
On 10/29/07 2:56 PM, Corbin Dunn said:
Since installing Leopard I'm seeing the following appear appear in
the console: "*** Collection <NSCFDictionary: 0x5e2e540> was mutated
while being enumerated."
I imagine this was something happening in the code before Leopard
but Leopard started logging it. Is there by any chance a breakpoint
I can set to catch where this is occurring? Would be handy.
Several ways; the first way is to link against Leopard. The second
way
is to set the user default: NSFastEnumerationShouldThrow=YES.
NSFastEnumerationShouldThrow, eh? 0 hits with Google, 0 hits in
Xcode's
doc viewer. :) Are there other new secret debugging aids in 10.5?
I thought the exceptions would come for free (i.e. always be turned
on). See the notes in the "Fast Enumeration" section here:
<http://developer.apple.com/leopard/overview/objectivec2.html>
___________________________________________________________
Ricky A. Sharp mailto:email@hidden
Instant Interactive(tm) http://www.instantinteractive.com
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden