Set Cocoa App Icon in Launchpad Programmatically

706 Views Asked by At

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!

1

There are 1 best solutions below

2
On BEST ANSWER

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