2

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.

Custmized folders example

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.

1
  • This would make a good feature request directed at Apple. Commented Sep 19 at 15:54

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.