Is there an AppKit equivalent to UIKit.UIApplication setAlternateIconName(_ alternateIconName: String?)?

I would like to provide alternate IconComposer-designed icons (that support light, dark, mono) for my macOS app.

The DockTile approach only works when app is running, but also only with NSImage. And there doesn't seem to be a way to load an NSImage from a .icon file that matches the current appearance option.

Thank you.

Thanks for the question, but there is currently no way to accomplish this. Depending on what you're trying to do there may be alternate ways of showing the status of your app (eg: NSStatusItem) but we'd need to add new API for both loading and rendering of the icon. Please file a feedback request for this enhancement though.

NSDockTile does also support having any custom view: https://developer.apple.com/documentation/appkit/nsdocktile/contentview

Is there an AppKit equivalent to UIKit.UIApplication setAlternateIconName(_ alternateIconName: String?)?
 
 
Q