Search code examples
objective-cmacoscocoalaunchpad

Set Cocoa App Icon in Launchpad Programmatically


I want to change Mac App icon in Launchpad programmatically, just like OS X Calendar app, which shows current date in Launchpad. But I can't find any document/resource online.

I tried changing Dock icon like this:

NSImage *image = [NSImage imageNamed:@"dockIcon2.png"];
[NSApp setApplicationIconImage:image];

But this only changes Dock icon, not Launchpad icon.

Is there a way to change (Mac) app icon in Launchpad programmatically?

Thanks!


Solution

  • You cannot do this. App Icons have to be set when the app is compiled