Changing Icon File for Mac App

Discussion in 'Mac Programming' started by klkittel, Nov 10, 2011.

  1. klkittel macrumors newbie

    Joined:
    Nov 10, 2011
    #1
    OK, so I changed the icon file name in the app's info.plist file to a file name that I have added to the target's resources. Just like I've been doing for iPhone apps. But the icon in the dock on my Mac doesn't change, it is the generic paper/pencil/ruler/paintbrush icon. If I go into the App About... the icon is the correct one that I set. What am I missing? I am using Xcode 3.2.5 and running OS X 10.6.8

    Thanks.

    ----------

    I guess the dock icon does not change when doing a Debug build, only Release build.

    :D
     
  2. Comeagain? macrumors 68020

    Comeagain?

    Joined:
    Feb 17, 2011
    Location:
    Spokane, WA
    #2
    Thanks for sharing...glad you figured it out?
     
  3. jiminaus macrumors 65816

    jiminaus

    Joined:
    Dec 16, 2010
    Location:
    Sydney
    #3
    That's not been my experience. Perhaps something wasn't being rebuilt correctly. If you clean your debug build and re-build, does the icon change in the dock?
     
  4. klkittel thread starter macrumors newbie

    Joined:
    Nov 10, 2011
    #4
    Actually I did a target clean, and a rebuild and now everything works for the debug target, too. It gets a little frustrating when things don't work as expected.
     
  5. foidulus macrumors 6502a

    Joined:
    Jan 15, 2007
    #5
    Also keep in mind that the Dock itself will do some caching, so icon changes may not appear right away(you can always kill the dock which I *think* empties out its cache)
     

Share This Page