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



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