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 7:41 AM, Peter S Lau didst favor us with:

> On 5/8/2006 1:49 AM, "Stephen Kay" <email@hidden> wrote:
> 
>> I have an .icns file, created with Icon Composer, with all the icons filled
>> in.
>> 
>> In CW 9.6, In my AppPropertyList.plc, (plist), I have:
>> 
>> key "CFBundleIconFile" value string "MyApp.icns".
>> 
>> So I have pointed the package at the correct file.
>> 
>> When I launch (Run) my app, the icon appears (correctly) in the dock.
>> However, after building the app, when viewing the package in the finder
>> inside the folder, it has the generic app icon.
>> 
>> If I view the package contents, it appears that all the correct pieces are
>> in the correct places, with the correct names.
>> 
>> If I duplicate the package in the Finder, the new copy shows up with the
>> correct icon. (!)
>> 
>> Yet the original stays with the generic icon. Any ideas on what I'm missing?

A Finder that doesn't have bugs in it.

>> Thanks,
>> - Stephen
> 
> I think the Finder is not being smart...  And I believe it only happens to
> fresh build application for the first time on a machine.
> 
> I think I have seen this in Mac OS as well...
> 
> Here what I usually do in Finder:  Do a Get Info... Click on the icon, do a
> cmd-c, cmd-v, and cmd-x.
> 
> What the sequence does is to copy the generic icon to the clipboard... Then
> paste it as a custom icon to the application bundle, then remove it.  This
> should force the Finder to peek inside the bundle, etc.

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.

I've seen this before and some other options are:

- Just duplicate it again. I've never had it happen twice in a row. This is
what I used to do.

- Restart the Finder. I haven't tried this one, but it might work.

- Use something that will send the Finder a kAESync event on the copy to
tell the Finder to update. I use the Update Application Database command in
File Buddy 9's contextual menu and it always fixes the icon instantly.

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: Peter S Lau <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.