Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Collection was mutated while being enumerated



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?

Yes, there are lots. I recommend taking a moment to read the AppKit release notes, as there are several new debugging secrets mentioned there:


http://developer.apple.com/releasenotes/Cocoa/AppKit.html

Granted, this one isn't there, but linking against Leopard would cause it to raise an exception and be easily debuggable.

-corbin
_______________________________________________

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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden
References: 
 >Collection was mutated while being enumerated (From: Philip Dow <email@hidden>)
 >Re: Collection was mutated while being enumerated (From: Corbin Dunn <email@hidden>)
 >Re: Collection was mutated while being enumerated (From: "Sean McBride" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.