+stringWithContentsOfURL read-only?
+stringWithContentsOfURL read-only?
- Subject: +stringWithContentsOfURL read-only?
- From: Rick Mann <email@hidden>
- Date: Sun, 13 May 2012 15:26:56 -0700
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 (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