Kauth and Finder window update.
I have a kernel authorization extension (kauth). It can allow or disallow read files from removable media.
When it allows reading files, I open the Finder window on removable media folder, I see the list of files.
Then I make a command to my kauth to disallow to read files and list and search. My kauth returns KAUTH_RESULT_DENY for KAUTH_VNODE_LIST_DIRECTORY and KAUTH_VNODE_READ_DATA actions.
But in Finder window, I still see a list of files.
I invoke [[NSWorkspace sharedWorkspace] noteFileSystemChanged: path] in my daemon, but it does not help.
How could I say to Finder to reload the list of files?