> On Jul 7, 2015, at 16:52 , Quincey Morris > <quinceymor...@rivergatesoftware.com> wrote: > > On Jul 7, 2015, at 16:42 , Rick Mann <rm...@latencyzero.com> wrote: >> >> for item in enumerator! > > Like this: > >> for case let item? in enumerator! > > (Yes, it’s stupid.)
Hmm. It doesn't seem to like that: '?' pattern cannot match values of type 'Element'. It puts the carat on the '?' of item. Also, the enumerator is a NSDirectoryEnumerator. It returns AnyObject type, so wouldn't there have to be an NSURL cast in there somewhere? -- Rick Mann rm...@latencyzero.com _______________________________________________ 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