通知中心中的“应用程序"图标是默认的Mac图标 [英] Application icon in Notification Center is the default Mac icon

查看:102
本文介绍了通知中心中的“应用程序"图标是默认的Mac图标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用另一个image.icns作为我的应用程序图标文件.

I use another image.icns as my applications icon file.

我已经删除了~/Library/Application Support/NotificationCenter/*.db并重新启动了计算机,但是通知图标仍然是我的应用程序的默认Mac图标.

I've deleted ~/Library/Application Support/NotificationCenter/*.db and restarted my computer but the notification icon is still the default Mac icon for my application.

推荐答案

原来,您可能应该将图标保留在".iconset"中.并为通知中心准备好所有建议的尺寸(例如,可能是32 x 32,可能是16 x 16).

Turns out you should probably keep your icons in an ".iconset". And have all the recommended sizes available for the notification center to pick up (e.g. might be 32 x 32, might be 16 x 16).

要创建此文件,可以使用"Icon Composer"应用程序将您的.icns文件转换为完整的图标集.最后,.icns文件确实会出现在您构建的应用程序包/捆绑软件中.

And to create this, you can use the "Icon Composer" app to convert your .icns file into a full blown icon set. The .icns file does end up in your built app package / bundle in the end, though.

详细信息可以在Apple的,位于创建包括高分辨率版本的图标集"部分下.

Details can be found in Apple's "High Resolution Guidelines for OSX" document, under the "Create a set of icons that include high-resolution versions" section.

这篇关于通知中心中的“应用程序"图标是默认的Mac图标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆