• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
custom document icons per document file, not per document type
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: AppKit source available as reference?
  • Next by Date: Re: Project Builder & CVS
  • Previous by thread: Re: Using Custom.plist
  • Next by thread: Loading CFM shlb into a cocoa app
  • Index(es):
    • Date
    • Thread