> On Oct 22, 2016, at 12:11 PM, Jean Suisse <jean.li...@gmail.com> wrote: > > To refine, what difference is there between ObjC’s > for (NSURL* file in enumerator) > and swift’s > while let file = enumerator?.nextObject() as? URL
That’s irrelevant. Look at the backtrace of the crash — the problem has to do with Foundation.DateComponents. Apparently the ObjC-Swift bridge is trying to translate a date value from the enumeration result, and crashing due to a bug. —Jens _______________________________________________ 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