Thread-topic: Problem getting app icon to display in Finder
User-agent: Microsoft-Entourage/11.2.3.060209
On 5/8/2006 8:05 PM, "David A. Lyons" <email@hidden> wrote:
> On May 8, 2006, at 3:34 PM, Peter S Lau wrote:
>
>> On May 8, 2006, at 6:15 PM, Laurence Harris wrote:
>>> Nevertheless, it leaves behind an
>>> empty, invisible Icon\r file containing 268 bytes and using 4K of
>>> disk space
>>> (even in 10.4). There are better ways to address this.
>>
>> ah... I see what you are saying... mine says 0 bytes after I
>> removed the custom icon after the key sequence... but the file
>> exists nonetheless.
>
> Are you getting the "0 bytes" from the "ls" command? If so, that's
> only showing you the size of the data fork.
>
> % ls -l Icon*
> -rw-r--r-- 1 dave admin 0 May 8 17:03 Icon?
Yes.
> % ls -l Icon*/..namedfork/rsrc
> -rw-r--r-- 1 dave admin 286 May 8 17:03 Icon?/..namedfork/rsrc
Ah... That's an interesting use of ls... And you and Larry are right... I
almost forgot there's the resource fork that could exist in a file... Just
a bit surprised that after all the preaching not to use the resource fork,
yet Finder still uses it... Can't blame others now, can we? :-)
So, is this a known issue in Finder? Why can't Finder removed that Icon^M
file when the custom icon is removed, other than a bug?
Fortunately we check and clean our application bundle before we release so
no harm done on our users' machines. We just need to be careful when we
created our next application.
pete
_______________________________________________
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