• 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: Wed, 31 Oct 2007 13:34:38 -0700

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>

Yes, they will come for free, but you must link against Leopard (you must have missed my original email that stated this). Foundation uses Fast Enumeration when it can (ie: not just 'for .. in' statements). We discovered that there are some bad apps out there that would crash because of this. For binary compatibility, we can't have people's apps crashing, and instead log a warning. When the link on Leopard, they will start raising exceptions.


--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


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>)
 >Re: Collection was mutated while being enumerated (From: Ricky Sharp <email@hidden>)

  • Prev by Date: Re: Collection was mutated while being enumerated
  • Next by Date: Re: Collection was mutated while being enumerated
  • Previous by thread: Re: Collection was mutated while being enumerated
  • Next by thread: Re: Collection was mutated while being enumerated
  • Index(es):
    • Date
    • Thread