Rick Mann wrote:

> The file is generated and deleted by code; it's the same string passed 
> around, at least certainly in the existence check just before the attempted 
> delete. Surely that existence check would fail, too?

Not necessarily. The problem with patterns like "check if transient resource 
exists, then try to operate on transient resource" is that the existence of the 
resource can change between the test and the usage.

It might be amusing to perform your existence test again after the delete 
fails. (Although, you know, not strictly reliable for the above reason.)

Also: Can we see the code? I'm not sure if "that's just the way it is" but I'm 
a little confused about the bits where the log output says "NSURL=" and what 
follows is an unadorned path.
_______________________________________________

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