I'm using +stringWithContentsOfURL:encoding:error: to load the contents of a 
file for simple parsing. Unfortunately, if that file is open somewhere else, I 
get:

Error Domain=NSCocoaErrorDomain Code=257 "The file “Logs” couldn’t be opened 
because you don’t have permission to view it." UserInfo=0x7faf4a86c3a0 
{NSFilePath=/Users/rmann/Desktop/Logs, NSUnderlyingError=0x7faf4a8065c0 "The 
operation couldn’t be completed. Permission denied"}

I'm fairly sure that if I open the file read-only, I shouldn't have a problem.

Can this be done?

-- 
Rick


_______________________________________________

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