Icons for an app

Discussion in 'Mac Programming' started by thejadedmonkey, Oct 30, 2007.

  1. macrumors 604

    thejadedmonkey

    Joined:
    May 28, 2005
    Location:
    Pa
    #1
    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
     
  2. macrumors G4

    Eraserhead

    Joined:
    Nov 3, 2005
    Location:
    UK
    #2
    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.
     
  3. thread starter macrumors 604

    thejadedmonkey

    Joined:
    May 28, 2005
    Location:
    Pa
    #3
    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! =)
     
  4. macrumors G4

    Eraserhead

    Joined:
    Nov 3, 2005
    Location:
    UK
    #4
    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.
     
  5. Guest

    Darkroom

    Joined:
    Dec 15, 2006
    Location:
    Montréal, Canada
    #5
    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...
     

Share This Page