• 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
dropping alias file on NSPathControl with App Sandbox
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

dropping alias file on NSPathControl with App Sandbox


  • Subject: dropping alias file on NSPathControl with App Sandbox
  • From: Sean McBride <email@hidden>
  • Date: Fri, 05 Oct 2012 15:40:16 -0400
  • Organization: Rogue Research Inc.

Hi all,

NSOpenPanal takes care of resolving aliases/symlinks for you, which is important with App Sandbox since you want access to the target not the alias file itself.

But NSPathControl, in its pathControl:acceptDrop: method, does not resolve the alias for you, and try as I may, I can't find a way to resolve it under App Sandbox.  I get either:

Error Domain=NSCocoaErrorDomain Code=4 "The file doesn’t exist."
Error Domain=NSCocoaErrorDomain Code=259 "The file couldn’t be opened because it isn’t in the correct format."

depending on the exact contortions.

If the user granted my app access to an alias file, do I inherit access to its target?  It seems not.  As a programmer, I get that, but as a user, it seems counter to my intentions.

Am I missing a way to resolve the alias, or is this an NSPathControl bug?

Thanks,

--
____________________________________________________________
Sean McBride, B. Eng                 email@hidden
Rogue Research                        www.rogue-research.com
Mac Software Developer              Montréal, Québec, Canada

_______________________________________________

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: dropping alias file on NSPathControl with App Sandbox
      • From: Mike Abdullah <email@hidden>
  • Prev by Date: Re: Migrating to iPhone 5 screen size
  • Next by Date: Static Cocoa Library
  • Previous by thread: Re: Migrating to iPhone 5 screen size
  • Next by thread: Re: dropping alias file on NSPathControl with App Sandbox
  • Index(es):
    • Date
    • Thread