Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problem getting app icon to display in Finder



On 5/8/06 12:22 PM, John Stiles didst favor us with:

> Laurence Harris wrote:
>> On 5/8/06 11:25 AM, B.J. Buchalter didst favor us with:
>> 
>> 
>>>> Ouch. This is a hack. I wouldn't do that as it creates a custom icon file
>>>> in
>>>> the package that isn't deleted when you remove the custom icon.
>>>> 
>>> One thing that seems to work most of the time for me is to do Get Info on
>>> the app, click on the icon in the Get Info window, and then hit the "delete"
>>> key. This seems to cause the finder to refresh it's idea of the
>>> application's icon from the app itself (or something like that). Most of the
>>> time it makes the correct icon appear.
>>> 
>> 
>> Hmm. I'll try that next time.
>> 
>> FWIW, I think it's sad that we have to use any hacks at all to get the
>> Finder to show a correct icon. ;-)
>> 
> To be fair, I think it's a good thing in general that the Finder caches
> data, and I think Xcode could easily do what's necessary to convince the
> Finder to refresh the data---such as sending sync events or bumping the
> mod date on the app bundle. If we are going to be pointing fingers, I
> think Xcode is the guilty party here. The Finder team has clearly
> documented the necessary steps to get the Finder to refresh, and I think
> it's clear that Xcode isn't following those steps. (FWIW, CodeWarrior
> adid not follow these steps either... not that two wrongs make a right.)

This has nothing to do with Xcode, CW, or caching data. The bug here is one
that can happen when you duplicate a bundled application in the Finder. The
original can have the right icon and the copy gets a generic application
icon until you poke the Finder to get it to update the icon it's using.

> I've written an updater which upgrades app bundles from version A to
> version B, and all I had to do was call utimes on the .app container to
> bump its mod date once I was done modifying the bundle contents, and the
> Finder has always done a perfect job of staying in sync and showing the
> latest version number and icon for the app. Assuming you have a path to
> the app bundle folder, it's one line of code---not rocket science.

No, it isn't rocket science, but that's not the situation here. In this case
we're talking about a copy of the original application made with the
Finder's Duplicate command.

Larry

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/carbon-dev/email@hidden

This email sent to email@hidden

References: 
 >Re: Problem getting app icon to display in Finder (From: John Stiles <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.