Re: EXC_BAD_INSTRUCTION when enumerating /.DocumentRevisions-V100/
Re: EXC_BAD_INSTRUCTION when enumerating /.DocumentRevisions-V100/
- Subject: Re: EXC_BAD_INSTRUCTION when enumerating /.DocumentRevisions-V100/
- From: Quincey Morris <email@hidden>
- Date: Sat, 22 Oct 2016 11:12:45 -0700
- Feedback-id: 167118m:167118agrif8a:167118sO2yHp9M-p:SMTPCORP
On Oct 22, 2016, at 10:43 , Jean Suisse <email@hidden> wrote:
>
> while let file = enumerator?.nextObject() as? URL // EXC_BAD_INSTRUCTION HERE
You left out the line that defines “enumerator”.
Incidentally, you have this:
> let directoryURL = URL(fileURLWithPath: "/.DocumentRevisions-V100/“)
Accessing this directory seems like a very bad idea. It’s an incredibly private implementation detail of the document versioning system. There’s likely nothing in there that you can usefully access.
_______________________________________________
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