• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Collection was mutated while being enumerated
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Collection was mutated while being enumerated


  • Subject: Re: Collection was mutated while being enumerated
  • From: Corbin Dunn <email@hidden>
  • Date: Mon, 29 Oct 2007 14:56:18 -0700


On Oct 29, 2007, at 2:02 PM, Philip Dow wrote:

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.


Then break on objc_exception_throw.

--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:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Collection was mutated while being enumerated
      • From: "Sean McBride" <email@hidden>
    • Re: Collection was mutated while being enumerated
      • From: Philip Dow <email@hidden>
References: 
 >Collection was mutated while being enumerated (From: Philip Dow <email@hidden>)

  • Prev by Date: Re: "report a problem" dialog box
  • Next by Date: Re: Collection was mutated while being enumerated
  • Previous by thread: Collection was mutated while being enumerated
  • Next by thread: Re: Collection was mutated while being enumerated
  • Index(es):
    • Date
    • Thread