Changing Icon File for Mac App

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

  1. klkittel macrumors newbie

    Nov 10, 2011
    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



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

  2. Comeagain? macrumors 68020


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


    Dec 16, 2010
    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

    Nov 10, 2011
    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

    Jan 15, 2007
    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