Re: File Extensions Problem
Re: File Extensions Problem
- Subject: Re: File Extensions Problem
- From: Charles Srstka <email@hidden>
- Date: Fri, 22 Aug 2008 16:21:11 -0500
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 (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