It's a known issue in all 10.14 versions and some 10.15 versions.
Apple broke NSOpenPanel when they sandboxed the screensaver pref pane.
They also broke window focus BTW.
2 issues can be observed:
- you select a file, you get the parent folder.
- you switch to the list view mode and you can free
On May 28, 2020, at 06:39:40, Gabriel Zachmann via Cocoa-dev
wrote:
>
> I have screensaver where the user can select a folder through the options
> sheet.
> In that sheet, I open an NSOpenPanel, make a few settings, runModal,
> let the user navigate and choose a folder, then get oPanel.URL.
C
I have screensaver where the user can select a folder through the options sheet.
In that sheet, I open an NSOpenPanel, make a few settings, runModal,
let the user navigate and choose a folder, then get oPanel.URL.
(Complete code below.)
The curious thing is:
The oPanel returns only the folder tha