Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

thejadedmonkey

macrumors G3
Original poster
May 28, 2005
9,234
3,483
Pennsylvania
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

macrumors G4
Nov 3, 2005
10,434
12,250
UK
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

macrumors G3
Original poster
May 28, 2005
9,234
3,483
Pennsylvania
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

macrumors G4
Nov 3, 2005
10,434
12,250
UK
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 to see how I've done it for D&D Manager.
 

Darkroom

Guest
Dec 15, 2006
2,445
0
Montréal, Canada
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...
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.