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

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


  • Subject: How to tell if a file is writable in sandboxed mode?
  • From: Oleg Krupnov <email@hidden>
  • Date: Fri, 08 Nov 2013 18:31:40 +0200

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


  • Follow-Ups:
    • Re: How to tell if a file is writable in sandboxed mode?
      • From: Dong Feng <email@hidden>
    • Re: How to tell if a file is writable in sandboxed mode?
      • From: Mike Abdullah <email@hidden>
  • Prev by Date: Re: Why IBOutlet don't work under NSTableCellView?
  • Next by Date: Re: NSCustomImageRep and NSImage setSize
  • Previous by thread: Re: Why IBOutlet don't work under NSTableCellView?
  • Next by thread: Re: How to tell if a file is writable in sandboxed mode?
  • Index(es):
    • Date
    • Thread