How do I create icon for my documents in OS X

╄→尐↘猪︶ㄣ 提交于 2019-12-10 14:23:03

问题


I have a document-based application. So I need an icon for my app as well as an icon for my documents.

In Xcode/Images.xcassets there is an item called AppIcon which I can use for setting the icon of the app.

But how do I make an icon for my documents?

Here is what I have tried under TARGETS/Document Types and TARGETS/Exported UTIs

I have tried different methods suggested on Internet but nothing works. The doc icon is always blank and empty as you can see below:


回答1:


It turns out that if you change your icon you have to change the extension as well in order for the icon to show up.

So what I did was to first test without any icon getting an empty icon, and then tried to add the real icon. That did not work. Instead as soon as you add a new icon, also make sure to change the extension.

It is funny how such a little thing can make you lose a whole day, and also that I didn't find even a hint on this on the net.



来源:https://stackoverflow.com/questions/31206288/how-do-i-create-icon-for-my-documents-in-os-x

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!