Re: +stringWithContentsOfURL read-only?
Re: +stringWithContentsOfURL read-only?
- Subject: Re: +stringWithContentsOfURL read-only?
- From: Rick Mann <email@hidden>
- Date: Sun, 13 May 2012 15:31:02 -0700
Hrm. Seems I only sometimes get that error when opening a file...
On May 13, 2012, at 15:26 , Rick Mann wrote:
> 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
_______________________________________________
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