refreshing application dock icons
It seems like the Dock caches application icons using com.apple.dock.iconcache. I recently:
1) created an application
2) dragged it to the Dock to create a shortcut
3) updated the application bundle to include a new .icns icon
4) at this point the Dock did not refresh to show the new icon. No biggie, I tried logging out and back in. No change. I tried rebooting and also saw no change. Then one day the icon did end up refreshing itself in the Dock.
How does the Dock decide when to refresh applications icons in it's icon cache? Is there a way to help suggest to the Dock that my apps icon needs refreshing? I think I've seen this on both 10.3 and 10.5 if that is of any use. You'd thing the Dock would maintain a md5 checksum of the applications .icns file and auto refresh its cache whenever this md5 changes but apparently that does not seem to be the case.
1) created an application
2) dragged it to the Dock to create a shortcut
3) updated the application bundle to include a new .icns icon
4) at this point the Dock did not refresh to show the new icon. No biggie, I tried logging out and back in. No change. I tried rebooting and also saw no change. Then one day the icon did end up refreshing itself in the Dock.
How does the Dock decide when to refresh applications icons in it's icon cache? Is there a way to help suggest to the Dock that my apps icon needs refreshing? I think I've seen this on both 10.3 and 10.5 if that is of any use. You'd thing the Dock would maintain a md5 checksum of the applications .icns file and auto refresh its cache whenever this md5 changes but apparently that does not seem to be the case.
Power Mac G5 2.5, Mac OS X (10.3.x)