Retired Document
Important: This sample code may not represent best practices for current development. The project may use deprecated symbols and illustrate technologies and techniques that are no longer recommended.
iff-importer/README.txt
This code sample is a simple Spotlight plug-in (importer) that |
publishes metadata for IFF image files. It shows how to get a |
rudimentary importer working and does not do anything except |
publish the kMDItemPixelWidth and kMDItemPixelHeight attributes. |
The one flaw of this importer is that it reads the entire file |
into memory with the NSData method, dataWithContentsOfFile. A |
real image importer would only read the necessary pieces of the |
header and/or only read in a fixed size chunk from the start of |
the file. Fortunately IFF images tend to be less than a few megs |
in size so this isn't such a problem for this importer. |
Copyright © 2005 Apple Computer, Inc. All Rights Reserved. Terms of Use | Privacy Policy | Updated: 2005-06-01