blog advertising is good for you


blog advertising is good for you
User login

Adding a Persistant Icon to an Application

kebnellobass asks:

Question

OK.

Here is a question that im not even sure has an answer…

I have an .app that I did not create, it is very simple, it is a firmware updater. It came with no icon image, so finder uses the stock application image(pencil, ruler, and paper). I have created an .icns file containing my desired icon and mask with apples icon composer. Now how do I make the .icns file part of the .app? Is there a way to do this when I dont have applications origional .xcode? I am very HTML savy but when it comes to Xcode im lost. I know there has got to be a way to do it. Help me if you can.

Answer

That’s easy, actually.

Go to the application in the Finder and Show Package Contents for it. Open Info.plist and add a key for “CFBundleIconFile” with the name of the icon as a string argument (do not include any paths). Save that and then drop the icon in the Resources folder inside the application.

Logout, back in, and open the folder enclosing the program again and it should show up. If not, duplicate the file and the duplicate should have it (you have to force Launch Services to dirty the file and reload the Info.plist file).

Easy peasy.

Average rating
(0 votes)
Reply
The content of this field is kept private and will not be shown publicly.
3 + 0 =
Solve this simple math problem and enter the result. E.g. for 1+3, enter 4.