• 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
Gain access to resolved folder alias under sandboxing
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Gain access to resolved folder alias under sandboxing


  • Subject: Gain access to resolved folder alias under sandboxing
  • From: Steve Mills <email@hidden>
  • Date: Mon, 06 Apr 2015 11:49:10 -0500

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.

--
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


  • Follow-Ups:
    • Re: Gain access to resolved folder alias under sandboxing
      • From: Steve Mills <email@hidden>
  • Prev by Date: Re: Where is my bicycle?
  • Next by Date: Re: Where is my bicycle?
  • Previous by thread: Re: Where is my bicycle?
  • Next by thread: Re: Gain access to resolved folder alias under sandboxing
  • Index(es):
    • Date
    • Thread