Finder Sync Extension - Badge on Documents Folder

We have a Finder sync extension to show the sync status of files and folders. However, if the uses chooses to sync the Documents folder (or Desktop or Downloads), the badge is not shown. I verified that setBadgeIdentifier:forURL is called, just like for other files/folders. So is there something special we need to do, or are those folders somehow special for the Finder?

Replies

are those folders somehow special for the Finder?

Yes.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Thanks. I should also have asked: is there a way to add badges, or will they always be ignored? Also, what is the list of folders that is special? (With that list we might add a warning when a user selects one of those folders).

I should also have asked: is there a way to add badges, or will they always be ignored?

I don’t know for sure but I suspect it’s the latter.

Also, what is the list of folders that is special?

AFAIK that’s not documented but, even if it were, it’s only half of the picture. You could run into a folder whose badge is set by a different Finder Sync extension. This speaks to the intended purpose of Finder Sync extensions. See the second half of this post.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"