On 5/9/06 1:09 AM, Peter S Lau didst favor us with:
> 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...
I don't use ls to get file sizes. ;-)
> And you and Larry are right... I almost forgot there's the resource fork that
> could exist in a file...
This is how the Finder has stored custom icons since they were introduced in
System 7.
> 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?
It's been like this since System 7.
> Why can't Finder removed that Icon^M
> file when the custom icon is removed, other than a bug?
*If* it's deliberate I would think it's because they figured another
application could be storing other resources in the file. That's just a
guess. It may be they just don't bother.
Larry
> 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