Re: Image export/import question
Re: Image export/import question
- Subject: Re: Image export/import question
- From: Sherm Pendley <email@hidden>
- Date: Sun, 3 Oct 2004 12:00:16 -0400
On Oct 3, 2004, at 9:19 AM, M. Uli Kusterer wrote:
Create an NSFileWrapper for a directory. This will be your "file
package", i.e. what your users see as a document. Add an NSFileWrapper
for each image file to it (NSImage's -TIFFRepresentation is your
friend).
Either approach should work.
The initializer for a directory wrapper is
initDirectoryWithFileWrappers:, and takes a dictionary that contains
the file wrappers as its argument. You can create the file wrappers
first, store them in the dictionary, and then pass that to the
directory wrapper's initializer. Or, you can initialize the directory
wrapper with an empty dictionary, and add the file wrappers to it.
The dictionary used to create a directory wrapper is a *completely*
different animal from the dictionaries he might use to hold his data
and create property lists.
sherm--
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden