I'm using NSWorkSpace setIcon:forFile:options:
on a folder.
However, while the API returns success(true) every time the api is utilized, sometimes the Icon is not updated on the folder.
I've noticed creating a new file inside of the folder will trigger the icon to reappear, which leads me to believe that Finder needs to refresh the folder.
Is there a way to determine when the Icon has actually been set, and the folder needs to be refresh? And is there a way to refresh the folder without creating & deleting a file quickly?