Whoops, meant for this to go to the list:

On Jun 24, 2016, at 6:22 PM, Martin Wierschin <mar...@nisus.com> wrote:
> 
>>> It almost looks like the ability to pre-select a file was deliberately 
>>> removed from the NSOpenPanel API.
> 
> 
> Whatever the reason for removing this feature from NSOpenPanel, it’s a 
> nuisance for users. There are many good reasons for wanting to pre-select a 
> particular file when presenting an open dialog to the user. Without this 
> feature the user has to scroll though a potentially large file list looking 
> for the right entry, one whose name may not be familiar to the user.
> 
> If this change was made in the interest of security and sandboxing, how about 
> just exposing an API that allows an app to select a file for which the app 
> already has security-scoped bookmark data? That doesn’t cover all the use 
> cases, but it would at least improve the user experience when the user needs 
> to validate or change an existing preference.

Indeed, the reason I want to pre-select is to highlight an existing preference.

Earlier I was trying to remember the last time I saw an app pre-select a file.  
Your mention of the user preference use case jogged my memory.  I can think of 
a couple of apps that *don't* pre-select a file that was previously specified 
as a user preference.  I was surprised, because the apps are otherwise very 
well thought out.  Now I see the reason must be this limitation of NSOpenPanel.

> I filed a radar on this issue forever ago and naturally it was closed as a 
> duplicate. As everyone says, maybe file your own radar report to register a 
> vote with Apple. Though considering how long this functionality has gone 
> missing, I doubt we’ll see any changes– especially if Apple considers this 
> any kind of security risk.

I'm pessimistic too, but if I ever get around to filing a radar I'll let you 
know.

--Andy


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to