Is it safe to call setBadgeIdentifier:forURL: for files that have not been displayed in the finder?

The documentation for setBadgeIdentifier:forURL: says:

"Avoid adding badges to items that have not been displayed in the Finder."


Does it cause any problems if it is called for items that have not been displayed in the Finder?


It required a fair bit of work for the finder extension to keep track of all items seen by the finder and then only update the badge identifiers for those items. It is far simpler to notify the finder of change to a any badge identifier and have the finder ignore the call if it has not been seen.


I am not planning on calling setBadgeIdentifier for all items in the monitored folder on startup but to just call it when something happens such that the badge identifier would change.


Barry