On Aug 22, 2008, at 10:39 AM, Andrew Merenbach wrote:
To build on this, doesn't fast enumeration (Leopard-only, of course) raise an exception if a value is modified while the enumeration is running? (Not tested personally by me, but building upon an earlier thread from a little while back.)
It does throw an exception, and what's more, even plain old NSEnumerator uses NSFastEnumeration under the hood if you compile against the 10.5 SDK and set Mac OS X 10.5 as the deployment target, so you'll get exceptions even if you use the old-fashioned enumerators.
The best way to do this is not to remove objects from anything. Just create a new, empty mutable array, and *add* .mp3 files to the array as you find them.
Charles _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]