Re: NSSavePanel: Another sandbox issue
Re: NSSavePanel: Another sandbox issue
- Subject: Re: NSSavePanel: Another sandbox issue
- From: Marco S Hyman <email@hidden>
- Date: Wed, 30 May 2012 19:54:29 -0700
> 3. When I use -setDirectoryURL: and the URL is somewhere in my sandbox, the actual URL displayed is the old location, back in ~/Library/Application Support (!)
When using a sandbox in Mac OS X 10.7 and later, the home directory is the
app’s container directory. That is
~ ==> /Users/<user>/Library/Containers/<app>/Data/
Now the fact that the application is sandboxed and lives in a container
is irrelevant to the user. Try taking off your developer hat and
putting on your dumb user hat. A user will want to save somewhere,
perhaps in his Documents directory. In a sandboxed app that will be
/Users/<user>/Library/Containers/<app>/Data/Documents/
The user doesn't know or care what the actual path is. Why are you
trying to show it in a save dialog.
Marc
_______________________________________________
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