Re: Gain access to resolved folder alias under sandboxing
Re: Gain access to resolved folder alias under sandboxing
- Subject: Re: Gain access to resolved folder alias under sandboxing
- From: Steve Mills <email@hidden>
- Date: Thu, 09 Apr 2015 11:38:14 -0500
On Apr 6, 2015, at 11:49:10, Steve Mills <email@hidden> wrote:
>
> Say we have this structure:
>
> Pictures
> LotsOfFolderAliiInHere
> AliasToRealFolder
> RealFolder
> blah.jpg
>
> The sandboxed app lets the user choose a folder to process, and processing will use an NSDirectoryEnumerator to recursively go through all items in the chosen folder and add images to the document, and the user chooses LotsOfFolderAliiInHere. When the app gets to AliasToRealFolder, it does the right thing and resolves the alias using URLByResolvingAliasFileAtURL:options:error:. Then it creates the directory enumerator for that resolved folder, where sandboxing says "oh no you di-n't" and denies access to a folder that was in the parent folder the user chose by way of alias, thereby crippling the user's longstanding way of structuring their folder hierarchy.
>
> Is there any way around this hideous omission of what sandboxing should allow?
>
> Every time I see a shooting star, I wish hard that sandboxing gets ripped out en masse in 10.11 and replaced with something that works without causing such headaches and roadblocks for developers and users.
Submitted radar://20483547.
--
Steve Mills
Drummer, Mac geek
_______________________________________________
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