custom document icons per document file, not per document type
custom document icons per document file, not per document type
- Subject: custom document icons per document file, not per document type
- From: Dirk Vollmerhaus <email@hidden>
- Date: Thu, 05 Jul 2001 08:32:43 +0200
Hi there,
I am new to programming on the Mac, but a somewhat experienced OOP.
After reading the first half of "Learning Cocoa" I started an
application that should replace the standard document icon of a dropped
image file with a thumbnail representation like "Image Capture" does
with pictures from a digital camera in the "Pictures" folder. BUT -
although I am able to read custom document icons, I haven't found a way
to write custom document icons on a per document and not a per document
type base. NSFileWrapper has a method called setIcon: (NSImage
*)anImage, but using this with an image an saving the file afterwards
does nothing, although the safe operation returns TRUE and the file
modification date shows that there was an operation. Is there anything
concerning the image for NSFileWrapper that I have to know, or does
someone know a way how to create a custom document icon for individual
files using cocoa?
Thanks,
Dirk