On Jul 7, 2015, at 16:58 , Rick Mann <rm...@latencyzero.com> wrote:
> 
> Also, the enumerator is a NSDirectoryEnumerator. It returns AnyObject type, 
> so wouldn't there have to be an NSURL cast in there somewhere?


Try:

> for case let url as NSURL in enumerator

The way to figure these things out is to start with a switch statement, where 
the patterns are a bit more intuitive, or at least better documented:

> switch anyObject {
> case let url as NSURL:
> …
> }

and the case is what you drop into the “for … in enumerator” statement.



_______________________________________________

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to