Re: Icon for prefPane bundle?
Re: Icon for prefPane bundle?
- Subject: Re: Icon for prefPane bundle?
- From: David Remahl <email@hidden>
- Date: Mon, 08 Apr 2002 19:37:00 +0200
>
On 4/7/02 email@hidden (David Remahl) wrote:
>
>
> Yup, that is a bug. Bundles don't show their custom icons (unless pasted in
>
> the Finder, of course).
>
>
Has anyone attempted to figure out exactly what happens when you paste an icon
>
into an info window? Perhaps we could automate the process into a shell
>
script,
>
and add a build phase.
What happens is the following:
1. A file named 'Icon\r' is created inside the folder.
2. The file is assigned a resource fork containing icns resource -16455 with
the icon. If the original file icon had legacy icon resources, they were
copied as well.
3. The Has Custom Icon flag of the containing folder (the target) is set.
4. Finder is notified of the change and reloads the icon.
I believe the possibility of making a shell script for automating the
process was discussed on this list or macosx-dev about a year ago (when
Docklings were top fashion). It turned out to be rather difficult. Making a
simple cli using carbon to do it would probably be easier, even...
/ David
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.