• 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: [Q] NSSavePanel and permissions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Q] NSSavePanel and permissions


  • Subject: Re: [Q] NSSavePanel and permissions
  • From: Markus Hitter <email@hidden>
  • Date: Thu, 13 Jun 2002 10:13:19 +0200

Am Donnerstag den, 13. Juni 2002, um 09:00, schrieb Mark de Jong:

How does one easily prevent an NSSavePanel from allowing the user to select a directory to which she has no permissions to save?

This isn't easy to figure as there could be a folder with write permissions inside a folder you haven't(1). I'd expect NSSavePanel to do the right thing for you.


I'm not sure how to determine if the current user has the proper permissions to save in that directory.

"man stat" or NSFileManager.html


HTH,
Markus


(1) Simple example: If your Home is /Users/me/, you can't write to /Users/, but to /Users/me/ .
- - - - - - - - - - - - - - - - - - -
Dipl. Ing. Markus Hitter
http://www.jump-ing.de/
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
References: 
 >[Q] NSSavePanel and permissions (From: Mark de Jong <email@hidden>)

  • Prev by Date: Re: NSWindow not restoring location
  • Next by Date: Object from TableView cell
  • Previous by thread: [Q] NSSavePanel and permissions
  • Next by thread: NSWindow not restoring location
  • Index(es):
    • Date
    • Thread