0

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!

Zhigang An
  • 296
  • 2
  • 13
  • Is your application signed? http://stackoverflow.com/questions/13324902/launchpad-icons-not-showing-nsdocktile-badge-anymore –  Feb 12 '16 at 05:36
  • @duskwuff Hi, I saw that post before. That topic is about showing a badge in Launchpad, not changing icon. But for your question, my app is signed, both for debug and release. – Zhigang An Feb 12 '16 at 16:11

1 Answers1

0

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

Kyle Redfearn
  • 2,172
  • 16
  • 34