Problems with Zombie Icon

I have an icon that won’t go away. I used a particular icon, as well as a document name and extension in a project. I changed all three of those things, deleted the original icon file (and put it in the trash), and yet when I create a new file with the app I still get the old icon – the document kind (in info) and the new extension are correct, and the first time I created a file I got the right icon. However, when I opened the program by double clicking the icon, and then closed the app, the icon reverted to the old one. And now, all new files I create have the old icon. I did a spotlight search, and I found this zombie icon in three programs where I’ve used it (just because it was handy) but it didn’t show up in my current app. The info.plist shows the correct icon file. Any ideas on what is happening here?

Ric

After edit (next day): This morning, after my computer was turned on again, the zombie icon was gone and the correct one was back. I had tried closing my app and xcode yesterday (at least twice) but that did not fix the problem. I had thought that maybe the image or image rep was cached and that was the problem, but a cache shouldn’t survive shutting down the app. My thought now is that this has something to do with the Launch Services Database which stores info about applications — I don’t know how or when this might get updated when you change something in your app that would get stored there.