On Mar 28, 2012, at 7:21 PM, Jens Alfke wrote:

> On Mar 27, 2012, at 1:50 PM, Rick Mann wrote:
> 
>>   if ([fm fileExistsAtPath: url.absoluteString])
> 
> This line seems wrong. It should be using the .path property instead of 
> .absoluteString. 

Or better yet, just use the (unfortunately verbosely named) -[NSURL 
checkResourceIsReachableAndReturnError:] to test for the file’s existence.

Charles

_______________________________________________

Cocoa-dev mailing list ([email protected])

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 [email protected]

Reply via email to