In Tahoe, folder icons are color-tinted with a gradient. A small part of the folder remains uncolored, and it’s also possible to overlay a mask icon or even an emoji on top of the folder.
How can I access the fully customized folder icon (with tint/gradient/overlays) in Cocoa?
When I try to retrieve such customized folder icons using Cocoa APIs, I only get the default folder icon. For example:
[NSWorkspace.sharedWorkspace iconForFile:url];
[url getResourceValue:&image forKey:NSURLEffectiveIconKey error:nil];
[url getResourceValue:&image forKey:NSURLCustomIconKey error:nil];
All of these just return the standard folder icon, without any tint, gradient, or overlay.
