Re: [Q] NSSavePanel and permissions
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.