When we open Dropbox folder, we can see icon on the left bottom of the folder.
I am developing an application in which i also want the same behavior. If folder is syncing then it will show sync icon and for other operation it will show other icon. The marked files/folder when viewed in Finder must be shown with a custom icon. But when they are selected for preview ( using spacebar) they must show their original icon ( i.e the blue icon for folder etc) .
Can anyone please help me out ?? Thanks :)
Starting with Yosemite (10.10), there is now an officially supported (and thus Mac App Store compatible, hopefully) method for displaying sync status badges in Finder icons in the form of Finder Sync extensions.
Dropbox has developed a NSPlugin for showing icon badges on each folder/file. As you would know, NSPlugins for Finder were deprecated by Apple starting with Snow Leopard. I think Dropbox worked around it with a hack - that reenabled plugin support. I don't think Apple would have liked that. Apple wants third party apps to only provide services support, since they don't want any third party code in Finder's process, but services are underwhelming.
This can be achieved by creating new Finder Sync Extension. Find more information here: https://stackoverflow.com/a/43183393
来源:https://stackoverflow.com/questions/7991131/how-can-i-add-icon-overlay-in-finder