NSPathControl displays improperly when sandboxed
|Product:||Mac OS X
When using NSPathControl within a sandboxed application, it fails to show the pretty view it normally shows and instead just shows folders for everything in the path.
Steps to Reproduce:
1) Add an NSPathControl
2) Pass it an NSURL obtained by an NSOpenPanel, e.g. one for a file in your home directory
3) Observe what the NSPathControl shows
4) Check the system log to see the sandbox denial
A pretty view of the NSURL, including drive icons for drives or home icons for home folders.
A folder for every element in the path.
Also, a sandbox denial shows up in the log:
Dec 30 15:32:08 fruitbook sandboxd (): PathControlSandb(459) deny mach-lookup com.apple.KernelExtensionServer
Without sandboxing, this worked.
You may have to tweak the attached sample code to use a certificate you have to ensure you get the app to run in a sandbox.
I presume this is the same bug as rdar://10323628
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!