• 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: How to tell if a file is writable in sandboxed mode?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to tell if a file is writable in sandboxed mode?


  • Subject: Re: How to tell if a file is writable in sandboxed mode?
  • From: Mike Abdullah <email@hidden>
  • Date: Sat, 09 Nov 2013 16:04:11 +0000

Does querying for NSURLIsWritableKey give you any more info?

On 8 Nov 2013, at 16:31, Oleg Krupnov <email@hidden> wrote:

> I’m trying to use -[NSFileManager isWritableFileAtPath:], but when it
> returns NO, I’d like to know if it’s “no” because the app simply
> doesn’t have access to this path due to sandboxing, or is it “no"
> because the file doesn’t have write permissions set in its file
> attributes?
>
> Is there a way to discriminate these two cases?
>
> Or more generally, is there a way to tell that an app does or does not
> have access to some file because of *sandboxing* (as opposed to file
> attributes)?
>
> Thanks!
>
> _______________________________________________
>
> 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


  • Follow-Ups:
    • Re: How to tell if a file is writable in sandboxed mode?
      • From: Oleg Krupnov <email@hidden>
References: 
 >How to tell if a file is writable in sandboxed mode? (From: Oleg Krupnov <email@hidden>)

  • Prev by Date: Re: Apple Sample Code WWDC 2010 session 114 (2551)
  • Next by Date: Weird bug affecting 10.6 (but not newer)
  • Previous by thread: How to tell if a file is writable in sandboxed mode?
  • Next by thread: Re: How to tell if a file is writable in sandboxed mode?
  • Index(es):
    • Date
    • Thread