• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: +stringWithContentsOfURL read-only?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >+stringWithContentsOfURL read-only? (From: Rick Mann <email@hidden>)

  • Prev by Date: +stringWithContentsOfURL read-only?
  • Next by Date: Re: multi-window document best practices?
  • Previous by thread: +stringWithContentsOfURL read-only?
  • Next by thread: KVO de-observation difficulties when closing a window
  • Index(es):
    • Date
    • Thread