• 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
Re: How to pre-select a file in NSOpenPanel -- specifically, a .app bundle?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to pre-select a file in NSOpenPanel -- specifically, a .app bundle?


  • Subject: Re: How to pre-select a file in NSOpenPanel -- specifically, a .app bundle?
  • From: Quincey Morris <email@hidden>
  • Date: Fri, 24 Jun 2016 13:54:44 -0700
  • Feedback-id: 167118m:167118agrif8a:167118sMy6E1nuHx:SMTPCORP

On Jun 24, 2016, at 13:31 , Andy Lee <email@hidden> wrote:
>
> It almost looks like the ability to pre-select a file was deliberately removed from the NSOpenPanel API.  Could that be the case?

I don’t know, but I can think of three possible rational explanations:

1. [Security] Being able to select an arbitrary file programmatically might lead to spearphishing exploits, where the user is tricked into opening a file that is otherwise inaccessible from code in the sandbox.

2. [Security] It might be argued that due to sandboxing, the app doesn’t know of the existence of files except those that it already knows the existence of. That is, selecting arbitrary files might lead indirectly to arbitrary directory enumeration.

3. [UI] The “directoryURL” property description in the header says that the selection is asynchronous, and the actual selection may happen “later”. It seems possible that the user experience if a file was selected “later” was judged to be unacceptable.

_______________________________________________

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: How to pre-select a file in NSOpenPanel -- specifically, a .app bundle?
      • From: Charles Srstka <email@hidden>
    • Re: How to pre-select a file in NSOpenPanel -- specifically, a .app bundle?
      • From: Martin Wierschin <email@hidden>
References: 
 >How to pre-select a file in NSOpenPanel -- specifically, a .app bundle? (From: Andy Lee <email@hidden>)

  • Prev by Date: Re: NSService (aka. Bonjour) outside local network
  • Next by Date: Re: How to pre-select a file in NSOpenPanel -- specifically, a .app bundle?
  • Previous by thread: How to pre-select a file in NSOpenPanel -- specifically, a .app bundle?
  • Next by thread: Re: How to pre-select a file in NSOpenPanel -- specifically, a .app bundle?
  • Index(es):
    • Date
    • Thread