-[NSPasteboard readObjectsForClasses:] does not resolve alias file
Originator: | christopher.atlan | ||
Number: | rdar://47920558 | Date Originated: | February 8 2019 |
Status: | Open | Resolved: | |
Product: | macOS + SDK | Product Version: | 10.14.3 (18D42) |
Classification: | Bug | Reproducible: | Always |
Area: App Sandbox Summary: When the user opens an alias file with NSOpenPanel, it resolves the file alias. And returns access to the resolved alias. But when the user drags and drops an alias file into the application, -[NSPasteboard readObjectsForClasses:@[[NSURL class]] does NOT resolve the alias. While [NSURL URLByResolvingAliasFileAtURL:url options:0 error:NULL] works, the sandbox denies access to the resolved alias. NOTE: Drop onto the App Dock Icon also resolves and grands access to the resolved alias, as expected. The problem is only drops on custom NSViews. Steps to Reproduce: 1) In Finder select a file, right click and "Make Alias" 2) Drag alias file to an app accepting drag & drop ONTO a NSView Expected Results: App to open file Actual Results: App can't open file Version/Build: 10.14.3 (18D42)
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!