Thursday, October 15, 2009

How to create ICNS icon for your Cocoa application in less than 5 minutes.

Here's how I get an cool looking icon for my Cocoa app in less than 5 minutes. We need Snow Leopard for this to work. I haven't try but it could work with Leopard.

  1. Download one of the free PNG icons -- you can start with SmashingMazagine
  2. Open with Preview -- just double click on the png image will do.
  3. Goto File, Save As. Give it a name or save as it is. Choose Format -> ICNS.
  4. Save.
Now you have a Mac OS icon file that you can use in your Cocoa app. You can do this easily by dragging the icon file to your project in XCode's Resource. Open *-info.plist file and set icon to the icon filename that you just drag in.

Rebuild your application and you will get a nice icon for your app.

No comments: