PDA

View Full Version : Icons for an app




thejadedmonkey
Oct 30, 2007, 04:26 PM
Hello all.
I was just wondering (and google was no help, somehow:confused:) how in the world do you compile an app with an icon?

Thanks!
TheJadedMonkey



Eraserhead
Oct 30, 2007, 04:45 PM
You create an icon file with Icon Composer (in /Developer/Applications/Utilities), then you add it to your project and then in the Info.plist file edit the string for the key: <key>CFBundleIconFile</key> to point to your icon file.

If that doesn't make sense I can try and explain it better.

thejadedmonkey
Oct 30, 2007, 04:58 PM
Thanks, I had tried that before and it wasn't working. What I ended up doing was telling it to make the icon path relative and copying the file to the project or something.. I'll play around with it later, but at least I got it working now, thanks! =)

Eraserhead
Oct 30, 2007, 05:13 PM
Thanks, I had tried that before and it wasn't working. What I ended up doing was telling it to make the icon path relative and copying the file to the project or something.. I'll play around with it later, but at least I got it working now, thanks! =)

Sometimes you do find (at least under Tiger), that the icon doesn't display straight away its worth a clean and rebuild to make sure. If its useful you can take a look at my source code (http://www.erasersoft.com/source.html) to see how I've done it for D&D Manager (http://www.erasersoft.com/download.html).

Darkroom
Oct 31, 2007, 05:33 PM
there's a new Icon Composer app for leopard that takes icons up to 512 pixels... clearly this is so your app will look good in coverflow in the finder... just incase you were developing for 10.4, i would suggest you have your icons built in 10.5 so they'll look good on both tiger and leopard...