Re: Collection was mutated while being enumerated
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