Re: Getting thumbnail of document to appear?
Re: Getting thumbnail of document to appear?
- Subject: Re: Getting thumbnail of document to appear?
- From: David Remahl <email@hidden>
- Date: Sun, 10 Nov 2002 16:51:40 +0100
>
Are you confusing file previews with custom icons? I thought they were
>
very different.
They are, indeed.
>
Photoshop is another app that creates custom icons -- no idea if they
>
are in the resource fork or not, but probably.
Yes, they are. They are in the custom icon resource, which is an icns
resource with an ID of kCustomIconResourceID (from memory, not exact name,
defined in Icons.h).
>
The Finder displays previews by actually reading the file and
>
generating the "icon" or text preview live. I thought this was what the
>
OP meant, but then I was also distracted by this other pre-generated
>
custom icon discussion. Anyway my hard drive has a custom icon which
>
appears as
>
-rw-r--r-- 1 brentgul admin 62485 Sep 4 23:02 .VolumeIcon.icns
>
I can't find the ones I have on my folders, but they don't seem to
>
affect the reported size of the folder either way.
Only harddrives have their custom icons in real icns files. Folders store
their custom icons in curiously named resource fork files called Icon\r
(yes, that is a return at the end of the name) inside of the folder.
For both folders and files to show their custom icons, they need to have
their custom icon flag set.
>
And I didn't think any Apple software used the resource fork any more.
>
>
What's in the Desktop DF -- window positions? Could that also hold
>
custom icons?
I don't know how Desktop DF is used in OSX. It doesn't and never did store
custom icons.
/ Rgds, 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.