> On Oct 22, 2016, at 2:21 PM, Jean Suisse <jean.li...@gmail.com> wrote: > > I don’t know if it’s so irrelevant, because in the backtrace the swift code > calls -[NSURLDirectoryEnumerator nextObject]. Maybe the ObjC code doesn’t. > Hence my question.
Obj-C for…in loops use NSFastEnumeration, which is equivalent to calling nextObject, just faster. My point is that the crash is not in the enumerator at all, but in the glue where the value it returns is translated into Swift. There seems to be some bug there, specifically with handling dates. —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