This post is from the WWDC26 AppKit Q&A.
Hey Team,
Using NSWorkspace.icon(forFile:) and pointing to an app bundle, the system returns an NSImage with the icon of the app, but in the current style.
For example, if the user selected tinted icons in Appearance in System Settings, then any icon I receive back from the API will be tinted using the current accent color.
Is there a way to override this and get the original icon?
Thanks, Ari